/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @author FusionCharts Technologies LLP
 @version fusioncharts/3.3.0-release.18700
 FusionCharts Technologies

 @include FusionCharts.JS-raphael.js
 @since 3.3
 FusionCharts Technologies

 @include FusionCharts.JS-raphael.js
 @since 3.3
 FusionCharts Technologies

 @include FusionCharts.JS-raphael.js
 @since 3.3
 FusionCharts Technologies

 @include FusionCharts.JS-raphael.js
 @since 3.3
 FusionCharts Technologies

 @since 3.3
*/
(function(){var k=FusionCharts(["private","modules.renderer.js-lib"]);if(k!==void 0){var i=window,q="",B="0",d=".",h=document,R=!!h.createElementNS&&!!h.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,e=/msie/i.test(navigator.userAgent)&&!window.opera,w=/\s+/g,aa=/^#?/,M=/^rgba/i,K=/[#\s]/ig,W=/\{br\}/ig,U=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,I=Math.abs,V=Math.pow,$=Math.round,ga=V(2,-24),j=Object.prototype.toString,ia=h.documentElement.ontouchstart!==void 0,n=Math,I=n.abs,r=n.max,
l=n.min,P={pageX:0,pageY:0},X=function(a){var b=a.data,c=b.chart,d=c.paper,g=a.type,t=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,p=ia&&f(a)||P,C=c.elements.resizeBox,E=a.layerX||p.layerX,o=a.layerY||p.layerY,e=E-b.ox,s=o-b.oy,n=b.bBox,v=b.ox,pa=b.oy,n=b.zoomX,h=b.zoomY,T=b.canvasY,j=b.canvasX,wa=b.canvasW,w=b.canvasH,x=b.canvasX2,i=b.canvasY2,Q=b.strokeWidth,e=b.chartPosLeft,s=b.chartPosTop,v=b.attr;E===void 0&&(E=(a.pageX||p.pageX)-e,o=(a.pageY||p.pageY)-s);switch(g){case "dragstart":b.oy=
o;b.ox=E;b.allowMove=!1;if(!C)C=c.elements.resizeBox=d.rect(c.layers.tracker).attr(v);if(E>j&&E<x&&o>T&&o<i)b.allowMove=!0;if(t&&t.ishot)b.allowMove=!1;C.attr({x:0,y:0,width:0,height:0}).show();break;case "dragend":n=C.getBBox();a={chart:c,selectionLeft:n.x,selectionTop:n.y,selectionHeight:n.height,selectionWidth:n.width};b.allowMove&&b.callback(a);C.hide();delete b.oy;delete b.ox;break;default:if(!b.allowMove)break;e=E-b.ox;s=o-b.oy;v=b.ox;pa=b.oy;e=-(v-l(v-(v-r(v+e,j)),x));s=-(pa-l(pa-(pa-r(pa+
s,T)),i));C.attr({x:(n?l(v,v+e):j)+Q*0.5,y:(h?l(pa,pa+s):T)+Q*0.5,width:n?I(e):wa,height:h?I(s):w})}},S=function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,c=a.data,f=a.type,g=a.layerX,t=a.layerY;g===void 0&&(g=a.pageX-c.chartPosLeft,t=a.pageY-c.chartPosTop);if(f==="mousedown")b.ishot=g>c.canvasX&&g<c.canvasX2&&t>c.canvasY&&t<c.canvasY2;f==="mouseup"&&setTimeout(function(){b.ishot=!1},1)},n=function(){var a="innerWidth",b="innerHeight",c=h.documentElement||h.body,
f=c;"innerWidth"in i?f=i:(a="clientWidth",b="clientHeight");return function(){return{width:f[a],height:f[b],scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}}}(),L=function(a,b){for(var c={left:a.offsetLeft,top:a.offsetTop},a=a.offsetParent;a;)c.left+=a.offsetLeft,c.top+=a.offsetTop,a!==h.body&&a!==h.documentElement&&!b&&(c.left-=a.scrollLeft,c.top-=a.scrollTop),a=a.offsetParent;return c},x=function(a,b){return!a&&a!==!1&&a!==0?b:a},z=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||
!(a!==!1&&a!==0))return a;return q},A=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))return a},c={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},b=function(a,b,f,d){jQuery(a).bind(ia&&c[b]||b,d,f)},a=function(a,b,f){var d=h.removeEventListener?"removeEventListener":"detachEvent";h[d]&&!a[d]&&(a[d]=function(){});jQuery(a).unbind(ia&&c[b]||b,f)},f=function(a){var b=a.sourceEvent||a.originalEvent;return ia&&b&&b.touches&&b.touches[0]||
a},s=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a},o=function(a,b){a=!a&&a!==!1&&a!==0?NaN:Number(a);return isNaN(a)?null:b?I(a):a},v=function(a){return typeof a==="string"?a.replace(W,"<br />"):q},Q=function(a,b,c){var f,g;if(b instanceof Array)for(f=0;f<b.length;f+=1)if(typeof b[f]!=="object")c&&b[f]===void 0||(a[f]=b[f]);else{if(a[f]===null||typeof a[f]!=="object")a[f]=b[f]instanceof Array?[]:{};Q(a[f],b[f],c)}else for(f in b)if(b[f]!==
null&&typeof b[f]==="object")if(g=j.call(b[f]),g==="[object Object]"){if(a[f]===null||typeof a[f]!=="object")a[f]={};Q(a[f],b[f],c)}else if(g==="[object Array]"){if(a[f]===null||!(a[f]instanceof Array))a[f]=[];Q(a[f],b[f],c)}else a[f]=b[f];else a[f]=b[f];return a},sa=function(a,b,c){if(typeof a!=="object"&&typeof b!=="object")return null;if(typeof b!=="object"||b===null)return a;typeof a!=="object"&&(a=b instanceof Array?[]:{});Q(a,b,c);return a},Aa=function(a,b){var c;if(b instanceof Array)for(c=
b.length-1;c>=0;c-=1)typeof b[c]!=="object"?b[c]===!0&&a&&a.splice&&a.splice(c,1):j.call(b[c])===j.call(a[c])&&Aa(a[c],b[c]);else for(c in b)typeof b[c]!=="object"?b[c]===!0&&a&&a.splice&&a.splice(c,1):j.call(b[c])===j.call(a[c])&&Aa(a[c],b[c]);return a},La=function(){var a=/^@window_/g;return function(b,c){var f=b.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,q).replace(/\[/g,".@window_").replace(/\]/g,q).split("."),g=i,t,p;p=q;var C,E,d;E=f.length;for(d=0;d<E;d+=1){C=f[d];t=g;if(C.match(a))p=i[C.replace(a,
q)],g=g[p];else if(g===void 0||g===null)throw(p||C).replace(a,q)+" is not defined";else g=g[C];p=C}if(g&&(typeof g.call==="function"||g===i.alert))g===i.alert?g(c):g.call(t,c);else throw C.replace(a,q)+"() is not a function";}}(),J=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(b){try{i[a]=new Function(b),eval("window['"+a+"']();")}catch(c){setTimeout(function(){throw c;},0)}R?delete i[a]:i[a]=null}}(),ta=function(a,b){a=Number(a);a=isNaN(a)?100:a;b!==void 0&&(a=a*
b/100);return a%101},Ga=function(a,b,c){var a=a.split(","),f;c!==void 0&&(c=s(c.split(",")[0]));a[0]=ta(a[0],c);for(f=1;f<b;f+=1)a[f]=a[0]*ta(a[f],c)/100;return a.join(",")},ka=function(a,b,c){var f=0,g=0,t=0;c&&c.match(M)&&(c=c.split(","),f=c[0].slice(c[0].indexOf("(")+1),g=c[1],t=c[2],!b&&b!==0&&(b=parseInt(c[3].slice(0,c[3].indexOf(")"))*100,10)));if(a)if(a.match(M))c=a.split(","),f=c[0].slice(c[0].indexOf("(")+1),g=c[1],t=c[2];else{a=a.replace(K,q).split(",")[0];switch(a.length){case 3:a=a[0]+
a[0]+a[1]+a[1]+a[2]+a[2];break;case 6:break;default:a=(a+"FFFFFF").slice(0,6)}f=parseInt(a.slice(0,2),16);g=parseInt(a.slice(2,4),16);t=parseInt(a.slice(4,6),16)}!b&&b!=0&&(b=100);typeof b==="string"&&(b=b.split(",")[0]);b=parseInt(b,10)/100;return"rgba("+f+","+g+","+t+","+b+")"},ma=function(a){return a.replace(K,q).replace(aa,"#")},Ka=function(a,b){b=b<0||b>100?100:b;b/=100;var a=a.replace(K,q),c=parseInt(a,16),f=Math.floor(c/65536),g=Math.floor((c-f*65536)/256);return("000000"+(f*b<<16|g*b<<8|(c-
f*65536-g*256)*b).toString(16)).slice(-6)},oa=function(a,b){b=b<0||b>100?100:b;b/=100;var a=a.replace(K,q),c=parseInt(a,16),f=Math.floor(c/65536),g=Math.floor((c-f*65536)/256);return("000000"+(256-(256-f)*b<<16|256-(256-g)*b<<8|256-(256-(c-f*65536-g*256))*b).toString(16)).slice(-6)},da={circle:"circle",triangle:"triangle",square:"square",diamond:"diamond",poly:"poly_",spoke:"spoke_"},qa,Ca=function(){function a(b){var p;if(b&&b.offsetWidth&&b.offsetHeight){if(b.appendChild)return b.appendChild(p=
document.createElement("span")),p.className="_SmartLabel_Container",p}else if((b=document.getElementsByTagName("body")[0])&&b.appendChild)return p=document.createElement("span"),p.className="_SmartLabel_Container",v+=1,b.appendChild(p),p}function b(a,p,g){g.innerHTML=a;var c,f,C,y=g.offsetWidth;c=p;f=Math.ceil(p/r);if(y<p)return a.length-1;if(f>a.length)c=p-y,f=a.length;for(;c>0;)if(g.innerHTML=a.substr(0,f),c=p-g.offsetWidth,C=Math.floor(c/r))f+=C;else return f;for(f+=C;c<0;)if(g.innerHTML=a.substr(0,
f),c=p-g.offsetWidth,C=Math.floor(c/r))f+=C;else break;return f}function c(b,p,g){if(!(typeof b==="undefined"||typeof b==="object"))this.id=b,typeof p==="string"&&(p=document.getElementById(p)),this.parentContainer=p,this.container=a(p,b),this.showNoEllipses=!g,this.init=!0,this.style={},this.setStyle()}var f={font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",
textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position","background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",
backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",
borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness","border-right-thickness":"border-right-thickness",borderBottom:"border-bottom",
"border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",
borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"};qa=function(){var a=document.createElement("span"),b,p={lineHeight:!0,"line-height":!0},g=function(){return s(parseInt(a.style.fontSize,10),10)*1.4+"px"};a.innerHTML="fy";b=window.getComputedStyle?function(){var b=window.getComputedStyle(a,null);return b&&b.getPropertyValue("line-height")?b.getPropertyValue("line-height"):g.apply(this,arguments)}:a.currentStyle?function(){return a.currentStyle.lineHeight}:
g;return function(c){var C,y="";for(C in c)!p[C]&&f[C]&&(y+=f[C]+" : "+c[C]+";");e&&!R?a.style.setAttribute("cssText",y):a.setAttribute("style",y);C=b();parseFloat(C)||(C=g());return c.lineHeight=C}}();var g={position:"absolute",top:"-9999em",whiteSpace:"nowrap"},t=0,p=/\b_SmartLabel\b/,C=/\b_SmartLabelBR\b/,E=/(\<[^\<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,d=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),o=/<[^>][^<]*[^>]+>/i,n=0,r=0,l=0,v=0,h,T,j;document.getElementsByClassName?
(h="getElementsByClassName",T="_SmartLabel",j=!0):(h="getElementsByTagName",T="span",j=!1);c.prototype={dispose:function(){var a=this.container,b;if(this.init){if(a&&(b=a.parentNode))b.removeChild(a),delete this.container;delete this.id;delete this.style;delete this.parentContainer;delete this.showNoEllipses}},useEllipsesOnOverflow:function(a){if(this.init)this.showNoEllipses=!a},getSmartText:function(g,c,f,e){if(!this.init)return!1;A(g)===void 0&&(g="");if(!this.container)this.container=a(this.parentContainer),
this.setStyle();var s={text:g,maxWidth:c,maxHeight:f,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:g,isTruncated:!1},r=!1,y,u,D,O,m=-1,G=-1,Ba=-1,ca=this.container,ya=[],F=0,Ea=this.showNoEllipses?"":"...",m=this.lineHeight,Oa=function(u){for(var u=u.replace(/^\s\s*/,""),y=/\s/,a=u.length;y.test(u.charAt(a-=1)););return u.slice(0,a+1)};if(ca){ca.innerHTML=g;s.oriTextWidth=D=ca.offsetWidth;s.oriTextHeight=r=ca.offsetHeight;if(r<=f&&D<=c)return s.width=s.oriTextWidth=D,s.height=
s.oriTextHeight=r,s;if(m>f)return s.text="",s.width=s.oriTextWidth=0,s.height=s.oriTextHeight=0,s;g=Oa(g).replace(/(\s+)/g," ");r=o.test(g);D=this.showNoEllipses?c:c-t;if(r){O=g.replace(E,"$2");g=g.replace(E,'$1<span class="_SmartLabel">$2</span>');g=g.replace(/(\<br\s*\/*\>)/g,"<span class='_SmartLabel _SmartLabelBR'>$1</span>");ca.innerHTML=g;for(var F=ca[h](T),Oa=[],v=-1,Ta=-1,r=0,m=F.length;r<m;r+=1)if(g=F[r],j||p.test(g.className))if(G=g.innerHTML,G!=""){if(G==" ")Ta=Oa.length;else if(G=="-")v=
Oa.length;Oa.push({spaceIdx:Ta,dashIdx:v,elem:g});ya.push(G)}delete F;F=0;r=Oa.length;n=Oa[0].elem.offsetWidth;if(n>c)return s.text="",s.width=s.oriTextWidth=s.height=s.oriTextHeight=0,s;else n>D&&!this.showNoEllipses&&(D=c-2*l,D>n?Ea="..":(D=c-l,D>n?Ea=".":(D=0,Ea="")));if(e)for(;F<r;F+=1)g=Oa[F].elem,e=g.offsetLeft+g.offsetWidth,e>D&&(u||(u=F),ca.offsetWidth>c&&(y=F,F=r));else for(;F<r;F+=1)if(g=Oa[F].elem,m=g.offsetHeight+g.offsetTop,e=g.offsetLeft+g.offsetWidth,ya=null,e>D){if(u||(u=F),e>c)G=
Oa[F].spaceIdx,m=Oa[F].dashIdx,G>Ba?(Oa[G].elem.innerHTML="<br/>",Ba=G):m>Ba?(Oa[m].elem.innerHTML=m===F?"<br/>-":"-<br/>",Ba=m):g.parentNode.insertBefore(ya=document.createElement("br"),g),g.offsetHeight+g.offsetTop>f?(ya?ya.parentNode.removeChild(ya):Ba===m?Oa[m].elem.innerHTML="-":Oa[G].elem.innerHTML=" ",y=F,F=r):u=null}else m>f&&(y=F,F=r);if(y<r){s.isTruncated=!0;u=u?u:y;for(F=r-1;F>=u;F-=1)g=Oa[F].elem,g.parentNode.removeChild(g);for(;F>=0;F-=1)g=Oa[F].elem,C.test(g.className)?g.parentNode.removeChild(g):
F=0}s.text=ca.innerHTML.replace(d,"$1");if(s.isTruncated)s.text+=Ea,s.tooltext=O}else{ya=g.split("");r=ya.length;y="";u=[];ca.innerHTML=ya[0];n=ca.offsetWidth;if(D>n)u=g.substr(0,b(g,D,ca)).split(""),F=u.length-1;else if(n>c)return s.text="",s.width=s.oriTextWidth=s.height=s.oriTextHeight=0,s;else this.showNoEllipses||(D=c-2*l,D>n?Ea="..":(D=c-l,D>n?Ea=".":(D=0,Ea="")));if(e)for(;F<r;F+=1){if(u[F]=ya[F],ca.innerHTML=O=u.join(""),ca.offsetWidth>D&&(y||(y=O.substr(0,O.length-1)),ca.offsetWidth>c))return ca.innerHTML=
s.text=Oa(y)+Ea,s.tooltext=s.oriText,s.width=ca.offsetWidth,s.height=ca.offsetHeight,s}else for(;F<r;F+=1)if(u[F]=ya[F],ca.innerHTML=O=u.join(""),ca.offsetWidth>D&&(y||(y=O.substr(0,O.length-1)),ca.offsetWidth>c))if(G=g.substr(0,u.length).lastIndexOf(" "),m=g.substr(0,u.length).lastIndexOf("-"),G>Ba?(u.splice(G,1,"<br/>"),Ba=G,e=G+1):m>Ba?(m===u.length-1?u.splice(m,1,"<br/>-"):u.splice(m,1,"-<br/>"),Ba=m,e=m+1):(u.splice(u.length-1,1,"<br/>"+ya[F]),e=F),ca.innerHTML=O=u.join(""),ca.offsetHeight>f)return s.text=
ca.innerHTML=Oa(y)+Ea,s.tooltext=s.oriText,s.width=ca.offsetWidth,s.height=ca.offsetHeight,s;else if(y=null,m=b(g.substr(e),D,ca),u.length<e+m)u=u.concat(g.substr(u.length,e+m-u.length).split("")),ca.innerHTML=O=u.join(""),F=u.length-1;s.text=ca.innerHTML=O;s.width=ca.offsetWidth;s.height=ca.offsetHeight;return s}s.height=ca.offsetHeight;s.width=ca.offsetWidth}else s.error=Error("Body Tag Missing!");return s},setStyle:function(a){if(!this.init)return!1;var b;if(a!==this.style||this.styleNotSet){if(a){if(this.style&&
this.container)for(b in this.style)a[b]||(this.container.style[b]="");delete this.style;this.style=a}if(this.container){a=this.container;b=this.style;for(var p in b)a.style[p]=b[p];for(p in g)a.style[p]=g[p];this.container.innerHTML="WgI";r=Math.ceil(this.container.offsetWidth/3);this.lineHeight=this.container.offsetHeight;this.container.innerHTML="...";t=this.container.offsetWidth;this.container.innerHTML=".";l=this.container.offsetWidth;this.styleNotSet=!1}else this.styleNotSet=!0}},getTextSize:function(b,
g,p){if(!this.init)return!1;if(!this.container)this.container=a(this.parentContainer),this.setStyle();var c={text:b,width:null,height:null,oriTextWidth:null,oriTextHeight:null,isTruncated:!1},f=this.container;if(f&&(f.innerHTML=b,c.oriTextWidth=f.offsetWidth,c.oriTextHeight=f.offsetHeight,c.width=Math.min(c.oriTextWidth,g),c.height=Math.min(c.oriTextHeight,p),c.width<c.oriTextWidth||c.height<c.oriTextHeight))c.isTruncated=!0;return c},getOriSize:function(b){if(!this.init)return!1;if(!this.container)this.container=
a(this.parentContainer),this.setStyle();var g={text:b,width:null,height:null},p=this.container;if(p)p.innerHTML=b,g.width=p.offsetWidth,g.height=p.offsetHeight;return g}};return c.prototype.constructor=c}(),cb=function(){var a={top:{align:"center",verticalAlign:"top",textAlign:"center"},right:{align:"right",verticalAlign:"middle",textAlign:"left"},bottom:{align:"center",verticalAlign:"bottom",textAlign:"center"},left:{align:"left",verticalAlign:"middle",textAlign:"right"}},b=/([^\,^\s]+)\)$/g,c=function(a,
b){var c;if(/^(bar|bar3d)$/.test(a))this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right";c=parseInt(b.labelstep,10);this.labelStep=c>1?c:1;this.showLabel=s(b.showlabels,b.shownames,1);this.is3D=/3d$/.test(a)};c.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(c,g,f,p,C,E,d,e){var s=f===""?!1:!0,o=p>0||E.match(b)[1]>0?!0:!1,n;if(s||o){o||(E="rgba(0,0,0,0)",p=0.1);n={isGrid:!0,width:p,dashStyle:C,color:E,value:g,
zIndex:d===void 0?2:d};if(s)g=c.opposite?e?this.xOppPos:this.yOppPos:e?this.xPos:this.yPos,g=a[g],n.label={text:f,style:c.labels.style,textAlign:g.textAlign,align:g.align,verticalAlign:g.verticalAlign,rotation:0,x:0,y:0};c.plotLines.push(n)}return n},addAxisAltGrid:function(a,b){if(!this.is3D){var c=s(a._lastValue,a.min),p=A(a._altGrid,!1);p&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:b,from:c,zIndex:1});a._lastValue=b;a._altGrid=!p}},addXaxisCat:function(b,g,c,p){var f=a[b.opposite?
this.xOppPos:this.xPos],g={isGrid:!0,width:0.1,color:"rgba(0,0,0,0)",value:g,label:{text:p,style:b.labels.style,textAlign:f.textAlign,align:f.align,verticalAlign:f.verticalAlign,rotation:0,x:0,y:0}};if(c%this.labelStep!==0)g.stepped=!0,g.label.style=b.steppedLabels.style;b.plotLines.push(g)},addVline:function(a,b,c,p){var f=p._FCconf,E=f.isBar,p=p.chart.plotBorderWidth,d=p%2,e=f.divlineStyle,o=v(b.label),n=Boolean(s(b.showlabelborder,f.showVLineLabelBorder,1)),r=Boolean(s(b.showlabelbackground,1)),
l=A(b.labelhalign,E?"left":"center"),h=A(b.labelvalign,E?"middle":"bottom").toLowerCase(),T=s(b.labelposition,0),j=s(b.lineposition,0.5),w=s(b.showvlines,f.showVLines,1),Ra=s(b.alpha,f.vLineAlpha,80),x=A(b.color,f.vLineColor,"333333").replace(/^#?/,"#"),i=r?A(b.labelbgcolor,f.vLineLabelBgColor,"333333").replace(/^#?/,"#"):q,P=x,Q=s(b.thickness,f.vLineThickness,1),y=Q*0.5,u=Boolean(Number(A(b.dashed,0))),D=s(b.dashlen,5),O=s(b.dashgap,2),m=f.smartLabel,G=parseInt(e.fontSize,10)+2,Ba=0,ca=s(b.rotatelabel,
f.rotateVLineLabels)?270:0,j=j<0||j>1?0.5:j,T=T<0||T>1?0:T;m.setStyle(e);m=m.getOriSize(o);x=ka(x,w?Ra:"0");if(E){switch(h){case "top":G-=m.height+y+2;break;case "middle":G-=m.height*0.5+1;break;default:G+=y}b.labelhalign||(Ba-=m.width*T)}else{switch(h){case "top":G-=m.height+2+(p||1)*(1-T)+T;break;case "middle":G-=m.height*0.5+p*(1-T*2);break;default:G+=(p-d)*T}switch(l){case "left":Ba+=Q;break;case "right":Ba-=Q+1}}a.plotLines.push({isVline:!0,color:x,width:Q,value:c-1+j,zIndex:s(b.showontop,f.showVLinesOnTop)?
5:3,dashStyle:u?Za(D,O,Q):void 0,label:{text:o,align:E?"left":"center",offsetScale:T,rotation:ca,y:G,x:Ba,textAlign:l,backgroundColor:i,borderWidth:w&&n?"1px":q,borderType:w&&n?"solid":q,borderColor:w&&n?P:q,backgroundOpacity:w&&r?A(b.labelbgalpha,f.vLineLabelBgAlpha)/100:0,style:{color:w?P:x,fontSize:e.fontSize,fontFamily:e.fontFamily,lineHeight:e.lineHeight,backgroundColor:i}}})}};return c.prototype.constructor=c}(),Ma=function(){function a(b,g,c){var f;if(g<=0)return String($(b));if(isNaN(g))return b=
b.toString(),b.length>12&&b.indexOf(d)!=-1&&(g=12-b.split(d)[0].length,f=V(10,g),b=String($(b*f)/f)),b;f=V(10,g);b=String($(b*f)/f);if(c==1){b.indexOf(d)==-1&&(b+=".0");c=b.split(d);g-=c[1].length;for(c=1;c<=g;c++)b+=B}return b}function b(a,g,c,f){var t=Number(a);if(isNaN(t))return q;var e=q,s=!1,o=q,n=q,r=o=0,o=0,r=a.length;a.indexOf(d)!=-1&&(e=a.substring(a.indexOf(d)+1,a.length),r=a.indexOf(d));t<0&&(s=!0,o=1);o=a.substring(o,r);a=o.length;t=f.length-1;r=f[t];if(a<r)n=o;else for(;a>=r;)n=(a-r?
c:q)+o.substr(a-r,r)+n,a-=r,r=(t-=1)<=0?f[0]:f[t],a<r&&(n=o.substring(a,0)+n);e!=q&&(n=n+g+e);s==!0&&(n="-"+n);return n}var c={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:q,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:q,numbersuffix:q,decimals:q,forcedecimals:B,yaxisvaluedecimals:"2",decimalseparator:d,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:q,inthousandseparator:q,sformatnumber:"1",sformatnumberscale:B,sdefaultnumberscale:q,snumberscaleunit:["K",
"M"],snumberscalevalue:[1E3,1E3],snumberprefix:q,snumbersuffix:q,sdecimals:"2",sforcedecimals:B,syaxisvaluedecimals:"2",xFormatNumber:B,xFormatNumberScale:B,xDefaultNumberScale:q,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:q,xNumberSuffix:q},f={mscombidy2d:{formatnumberscale:"1"}},g=function(a,b){var g,t,d,e,o,n,r,l,v,h=b.name,j=f[h],w,Ra;typeof j!=="object"&&(j=sa({},c));x(a.numberscaleunit)&&(g=a.numberscaleunit.split(","));if(t=x(a.snumberscaleunit,a.numberscaleunit))t=
t.split(",");if(d=x(a.xnumberscaleunit,a.numberscaleunit))d=d.split(",");if(e=x(a.ticknumberscaleunit,a.numberscaleunit))e=e.split(",");if(o=x(a.ynumberscaleunit,a.numberscaleunit))o=o.split(",");x(a.numberscalevalue)&&(n=a.numberscalevalue.split(","));if(Ra=x(a.snumberscalevalue,a.numberscalevalue))Ra=Ra.split(",");if(r=x(a.xnumberscalevalue,a.numberscalevalue))r=r.split(",");if(l=x(a.ticknumberscalevalue,a.numberscalevalue))l=l.split(",");if(v=x(a.ynumberscalevalue,a.numberscalevalue))v=v.split(",");
if(x(a.thousandseparatorposition)){w=a.thousandseparatorposition.split(",");for(var i=w.length,P,Q=s(w[i]),Q=Q?Q:c.thousandseparatorposition[0];i;)i-=1,(P=s(Math.abs(w[i])))?Q=P:P=Q,w[i]=P}b||(b={});i=s(a.scalerecursively,0);P=s(a.sscalerecursively,i);var Q=s(a.xscalerecursively,i),y=s(a.maxscalerecursion,-1),u=s(a.smaxscalerecursion,y),D=s(a.xmaxscalerecursion,y),O=x(a.scaleseparator," "),m=x(a.sscaleseparator,O),G=x(a.xscaleseparator,O);if(!y||y==0)y=-1;this.paramLabels=g={formatnumber:A(a.formatnumber,
b.formatnumber,j.formatnumber,c.formatnumber),formatnumberscale:A(a.formatnumberscale,b.formatnumberscale,j.formatnumberscale,c.formatnumberscale),defaultnumberscale:z(a.defaultnumberscale,b.defaultnumberscale,j.defaultnumberscale,c.defaultnumberscale),numberscaleunit:A(g,b.numberscaleunit,j.numberscaleunit,c.numberscaleunit).concat(),numberscalevalue:A(n,b.numberscalevalue,j.numberscalevalue,c.numberscalevalue).concat(),numberprefix:z(a.numberprefix,b.numberprefix,j.numberprefix,c.numberprefix),
numbersuffix:z(a.numbersuffix,b.numbersuffix,j.numbersuffix,c.numbersuffix),decimalprecision:parseInt(A.apply(window,a.decimals==="auto"?[c.decimalprecision]:[a.decimals,a.decimalprecision,b.decimals,j.decimals,c.decimals,b.decimalprecision,j.decimalprecision,c.decimalprecision]),10),forcedecimals:A(a.forcedecimals,b.forcedecimals,j.forcedecimals,c.forcedecimals),decimalseparator:A(a.decimalseparator,b.decimalseparator,j.decimalseparator,c.decimalseparator),thousandseparator:A(a.thousandseparator,
b.thousandseparator,j.thousandseparator,c.thousandseparator),thousandseparatorposition:A(w,b.thousandseparatorposition,j.thousandseparatorposition,c.thousandseparatorposition),indecimalseparator:z(a.indecimalseparator,b.indecimalseparator,j.indecimalseparator,c.indecimalseparator),inthousandseparator:z(a.inthousandseparator,b.inthousandseparator,j.inthousandseparator,c.inthousandseparator),scalerecursively:i,maxscalerecursion:y,scaleseparator:O};if(!b.useScaleRecursively||(g.numberscalevalue&&g.numberscalevalue.length)!=
(g.numberscaleunit&&g.numberscaleunit.length))g.scalerecursively=i=0;this.param1=n={formatnumber:g.formatnumber,formatnumberscale:g.formatnumberscale,defaultnumberscale:g.defaultnumberscale,numberscaleunit:g.numberscaleunit.concat(),numberscalevalue:g.numberscalevalue.concat(),numberprefix:g.numberprefix,numbersuffix:g.numbersuffix,decimalprecision:parseInt(A(a.yaxisvaluedecimals,g.decimalprecision,2)),forcedecimals:A(a.forceyaxisvaluedecimals,g.forcedecimals),decimalseparator:g.decimalseparator,
thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:i,maxscalerecursion:y,scaleseparator:O};this.paramX={formatnumber:A(a.xformatnumber,g.formatnumber),formatnumberscale:A(a.xformatnumberscale,g.formatnumberscale),defaultnumberscale:z(a.xdefaultnumberscale,g.defaultnumberscale),numberscaleunit:A(d,g.numberscaleunit.concat()),numberscalevalue:A(r,g.numberscalevalue.concat()),
numberprefix:A(a.xnumberprefix,g.numberprefix),numbersuffix:A(a.xnumbersuffix,g.numbersuffix),decimalprecision:parseInt(A(a.xaxisvaluedecimals,a.xaxisvaluesdecimals,g.decimalprecision,2)),forcedecimals:A(a.forcexaxisvaluedecimals,0),decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:Q,maxscalerecursion:D,scaleseparator:G};
if(!b.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=Q=0;this.param2=t={formatnumber:A(a.sformatnumber,b.sformatnumber,c.sformatnumber),formatnumberscale:A(a.sformatnumberscale,b.sformatnumberscale,c.sformatnumberscale),defaultnumberscale:z(a.sdefaultnumberscale,b.sdefaultnumberscale,g.defaultnumberscale),numberscaleunit:A(t,b.snumberscaleunit,c.snumberscaleunit).concat(),
numberscalevalue:A(Ra,b.snumberscalevalue,c.snumberscalevalue).concat(),numberprefix:z(a.snumberprefix,b.snumberprefix,c.snumberprefix),numbersuffix:z(a.snumbersuffix,b.snumbersuffix,c.snumbersuffix),decimalprecision:parseInt(A(a.syaxisvaluedecimals,a.sdecimals,a.decimals,b.sdecimals,c.sdecimals),10),forcedecimals:A(a.forcesyaxisvaluedecimals,a.sforcedecimals,a.forcedecimals,b.sforcedecimals,c.sforcedecimals),decimalseparator:A(a.decimalseparator,b.decimalseparator,c.decimalseparator),thousandseparator:A(a.thousandseparator,
b.thousandseparator,c.thousandseparator),thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:A(a.indecimalseparator,b.indecimalseparator,c.indecimalseparator),inthousandseparator:A(a.inthousandseparator,b.inthousandseparator,c.inthousandseparator),scalerecursively:P,maxscalerecursion:u,scaleseparator:m};if(/^(multiaxisline)$/.test(h))t.formatnumber=A(a.sformatnumber,a.formatnumber,b.sformatnumber,c.sformatnumber),t.formatnumberscale=A(a.sformatnumberscale,a.formatnumberscale,
b.sformatnumberscale,c.sformatnumberscale),t.defaultnumberscale=z(a.sdefaultnumberscale,a.defaultnumberscale,b.sdefaultnumberscale,g.defaultnumberscale),t.numberprefix=z(a.snumberprefix,a.numberprefix,b.snumberprefix,c.snumberprefix),t.numbersuffix=z(a.snumbersuffix,a.numbersuffix,b.snumbersuffix,c.snumbersuffix),t.decimalprecision=parseInt(A(a.syaxisvaluedecimals,a.yaxisvaluedecimals,a.sdecimals,a.decimals,b.sdecimals,c.sdecimals),10),t.forcedecimals=A(a.forcesyaxisvaluedecimals,a.forceyaxisvaluedecimals,
a.sforcedecimals,a.forcedecimals,b.sforcedecimals,c.sforcedecimals);this.paramLabels2=t=sa({},this.param2);t.decimalprecision=parseInt(A(a.sdecimals,a.decimals,a.syaxisvaluedecimals,b.sdecimals,c.sdecimals),10);t.forcedecimals=A(a.sforcedecimals,a.forcedecimals,a.forcesyaxisvaluedecimals,b.sforcedecimals,c.sforcedecimals);if(!b.useScaleRecursively||(this.param2.numberscalevalue&&this.param2.numberscalevalue.length)!=(this.param2.numberscaleunit&&this.param2.numberscaleunit.length))this.param2.scalerecursively=
P=0;this.paramScale={formatnumber:A(a.tickformatnumber,g.formatnumber),formatnumberscale:A(a.tickformatnumberscale,g.formatnumberscale),defaultnumberscale:z(a.tickdefaultnumberscale,g.defaultnumberscale),numberscaleunit:A(e,g.numberscaleunit.concat()),numberscalevalue:A(l,g.numberscalevalue.concat()),numberprefix:A(a.ticknumberprefix,g.numberprefix),numbersuffix:A(a.ticknumbersuffix,g.numbersuffix),decimalprecision:parseInt(A(a.tickvaluedecimals,g.decimalprecision,"2")),forcedecimals:A(a.forcetickvaluedecimals,
g.forcedecimals,0),decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:i,maxscalerecursion:y,scaleseparator:O};if(/^(bubble|scatter|selectscatter)$/.test(h))n.formatnumber=A(a.yformatnumber,n.formatnumber),n.formatnumberscale=A(a.yformatnumberscale,n.formatnumberscale),n.defaultnumberscale=z(a.ydefaultnumberscale,n.defaultnumberscale),
n.numberscaleunit=A(o,n.numberscaleunit),n.numberscalevalue=A(v,n.numberscalevalue),n.numberprefix=A(a.ynumberprefix,n.numberprefix),n.numbersuffix=A(a.ynumbersuffix,n.numbersuffix),g.formatnumber=A(a.yformatnumber,g.formatnumber),g.formatnumberscale=A(a.yformatnumberscale,g.formatnumberscale),g.defaultnumberscale=z(a.ydefaultnumberscale,g.defaultnumberscale),g.numberscaleunit=A(a.ynumberscaleunit,g.numberscaleunit.concat()),g.numberscalevalue=A(a.ynumberscalevalue,g.numberscalevalue.concat()),g.numberprefix=
A(a.ynumberprefix,g.numberprefix),g.numbersuffix=A(a.ynumbersuffix,g.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(h))this.param2.formatnumberscale=s(a.sformatnumberscale,"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(h))g.decimalprecision=A(a.decimals,"2");i&&(g.numberscalevalue.push(1),g.numberscaleunit.unshift(this.paramLabels.defaultnumberscale),this.param1.numberscalevalue.push(1),this.param1.numberscaleunit.unshift(this.param1.defaultnumberscale),this.paramScale.numberscalevalue.push(1),
this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));P&&(this.param2.numberscalevalue.push(1),this.param2.numberscaleunit.unshift(this.param2.defaultnumberscale),this.paramLabels2.numberscalevalue.push(1),this.paramLabels2.numberscaleunit.unshift(this.paramLabels2.defaultnumberscale));Q&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.timeConf={inputDateFormat:A(a.inputdateformat)}};g.prototype={percentValue:function(g){var c=
isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision;return b(a(g,c,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%"},getCleanValue:function(a,b){var g=a,c=this.paramLabels.indecimalseparator,f=this.paramLabels.inthousandseparator;g+=q;x(f)&&(f=f.replace(/(\W)/ig,"\\$1"),g=g.toString().replace(RegExp(f,"g"),q));x(c)&&(g=g.replace(c,d));a=!isNaN(g=parseFloat(g))&&isFinite(g)?
g:NaN;return isNaN(a)?null:b?I(a):a},dataLabels:function(a,b){return t(a,b?this.paramLabels2:this.paramLabels)},yAxis:function(a){return t(a,this.param1)},xAxis:function(a){return t(a,this.paramX)},sYAxis:function(a){return t(a,this.param2)},scale:function(a){return t(a,this.paramScale)},getCleanTime:function(a){var b;this.timeConf.inputDateFormat&&Date.parseExact&&(b=Date.parseExact(a,this.timeConf.inputDateFormat));return b&&b.getTime()}};g.prototype.constructor=g;var t=function(g,c){if(g!==null){var g=
Number(g),f=g+q,t;t=c.formatnumberscale==1?c.defaultnumberscale:q;var d;d=(d=f.split(".")[1])?d.length:c.forcedecimals?"2":q;if(c.formatnumberscale==1){var e,f=g;t=c.numberscalevalue;e=c.numberscaleunit;var o={},n=c.defaultnumberscale,r=0,l,v=[],h=[];if(c.scalerecursively){for(r=0;r<t.length;r++)if(l=s(t[r])||1E3,Math.abs(Number(f))>=l&&r<t.length-1)n=f%l,f=(f-n)/l,n!=0&&(v.push(n),h.push(e[r]));else{v.push(f);h.push(e[r]);break}v.reverse();h.reverse();o.value=v;o.scale=h}else{if(t.length===e.length)for(r=
0;r<t.length;r++)if((l=s(t[r])||1E3)&&Math.abs(Number(f))>=l)n=e[r]||q,f=Number(f)/l;else break;o.value=f;o.scale=n}e=o;g=f=e.value;t=e.scale}if(c.scalerecursively&&c.formatnumberscale!=0){t=e.value;e=e.scale;o=c.maxscalerecursion==-1?t.length:Math.min(t.length,c.maxscalerecursion);if(c.formatnumber==1){f="";for(v=0;v<o;v++)r=v==0?t[v]:Math.abs(t[v]),l=String(r),v==o-1&&(l=a(r,A(c.decimalprecision,d),c.forcedecimals)),f=f+b(l,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+e[v]+
(v<o-1?c.scaleseparator:"")}else{f="";for(v=0;v<o;v++)f=f+String(v==0?t[v]:Math.abs(t[v]))+e[v]+(v<o-1?c.scaleseparator:"")}f=(c.numberprefix||q)+f+(c.numbersuffix||q);delete t;delete e}else c.formatnumber==1&&(f=a(g,A(c.decimalprecision,d),c.forcedecimals),f=b(f,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)),f=(c.numberprefix||q)+f+t+(c.numbersuffix||q);return f}};return g}(),$a=function(){var a=function(a,c,g,f,p){a=Math.abs(c-a);c=a/(g+1);b(a/(g+1))>b(f)&&(p&&Number(c)/Number(f)<
(f>1?2:0.5)&&(f/=10),c=(Math.floor(c/f)+1)*f,a=c*(g+1));return a},b=function(a){var a=Math.abs(a),a=String(a),b=0,g=a.indexOf(d);g!=-1&&(b=a.length-g-1);return b};return function(c,f,g,t,p,e,d,o){var s,c=isNaN(c)==!0||c==void 0?0.1:c,f=isNaN(f)==!0||f==void 0?0:f;c==f&&c==0&&(c=0.1);var e=typeof e===void 0?!0:e,n=Math.max(Math.floor(Math.log(Math.abs(f))/Math.LN10),Math.floor(Math.log(Math.abs(c))/Math.LN10));s=Math.pow(10,n);Math.abs(c)/s<2&&Math.abs(f)/s<2&&(n--,s=Math.pow(10,n));n=Math.pow(10,
Math.floor(Math.log(c-f)/Math.LN10));c-f>0&&s/n>=10&&(s=n);var n=(Math.floor(c/s)+1)*s,r;f<0?r=-1*(Math.floor(Math.abs(f/s))+1)*s:e?r=0:(r=Math.floor(Math.abs(f/s)-1)*s,r=r<0?0:r);(typeof p===void 0||p)&&c<=0&&(n=0);p=g==null||g==void 0||g==q?!1:!0;e=t==null||t==void 0||t==q||isNaN(Number(t))?!1:!0;c=p==!1||p==!0&&Number(g)<c&&c-Number(g)>ga?n:Number(g);f=e==!1||e==!0&&Number(t)>f&&Number(t)-f>ga?r:Number(t);t=Math.abs(c-f);if(e==!1&&p==!1&&o==!0)if(c>0&&f<0)for(var o=!1,g=s>10?s/10:s,p=a(f,c,d,g,
!1)-(d+1)*g,v,l,h,j;o==!1;){if(p+=(d+1)*g,!(b(p/(d+1))>b(g)))if(v=p-t,e=p/(d+1),r=Math.min(Math.abs(f),c),n=r==Math.abs(f)?-1:1,d==0)o=!0;else for(j=1;j<=Math.floor((d+1)/2);j++)l=e*j,!(l-r>v)&&l>r&&(h=p-l,h/e==Math.floor(h/e)&&l/e==Math.floor(l/e)&&(t=p,c=n==-1?h:l,f=n==-1?-l:-h,o=!0))}else o=a(f,c,d,s,!0),v=o-t,t=o,c>0?c+=v:f-=v;else if(o==!0&&d>0){o=0;for(g=1;;){v=d+o*g;v=v==0?1:v;if(!(b(t/(v+1))>b(s)))break;o=g==-1||o>d?++o:o;if(o>25){v=0;break}g=o<=d?g*-1:1}d=v}return{Max:c,Min:f,Range:t,interval:s,
divGap:(c-f)/(d+1)}}}(),db=function(){var a=function(a,b){this.title.y=a.offsetHeight/2;if(b!==void 0)this.title.text=b};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:"FusionCharts",enabled:!0},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0};return a.prototype.constructor=
a}(),Qa={"true":{"true":{"true":{"true":"middle","false":"middle"},"false":{"true":"middle","false":"middle"}},"false":{"true":{"true":"middle","false":"middle"},"false":{"true":"middle","false":"middle"}}},"false":{"true":{"true":{"true":"bottom","false":"top"},"false":{"true":"middle","false":"middle"}},"false":{"false":{"true":"bottom","false":"top"},"true":{"true":"top","false":"bottom"}}}},fb={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right",
"false":"left"},"false":{"true":"left","false":"right"}}},eb=function(){return function(a,b,c,f,g,t,p){var e,d=c.trendStyle,o,n,r,l,h,j,w,T,i,x,P,Q;parseInt(d.fontSize,10);if(!(t?!c.showVLines:!c.showTrendlines)){e=0;for(n=a.length;e<n;e+=1)if(a[e].line){o=0;for(r=a[e].line.length;o<r;o+=1)if(l=a[e].line[o],x=c.numberFormatter.getCleanValue(A(l.startvalue,l.value,0)),P=c.numberFormatter.getCleanValue(A(l.endvalue,A(l.startvalue,l.value,0))),T=t?b:f&&l.parentyaxis&&/^s$/i.test(l.parentyaxis)?b[1]:
b[0],j=T.max,h=T.min,j>=x&&j>=P&&h<=x&&h<=P){h=l.parentyaxis&&/^s$/i.test(l.parentyaxis)?A(l.valueonleft,c.trendlineValuesOnOpp)!=="1":A(l.valueonright,c.trendlineValuesOnOpp)==="1";j=Boolean(s(l.istrendzone,t?1:0));if(w=(t?c.showVLineLabels:c.showTrendlineLabels)?v(A(l.displayvalue,c.numberFormatter[t?"xAxis":"dataLabels"](x))):q){if(i=x>P,Q=x<P,h={text:w,textAlign:g?"center":h?"left":"right",align:g?fb[j][!p][Q]:h?"right":"left",verticalAlign:g?"bottom":Qa[j][!p][i][h],rotation:0,x:0,y:0,style:d},
w=A(l.color,c.trendlineColor),l.alwaysVisible=j,w)h.style=sa({},d),h.style.color=w.replace(aa,"#")}else h=void 0;w=A(l.tooltext);i=s(l.thickness,c.trendlineThickness,1);j?T.plotBands.push({isTrend:!0,color:ka(A(l.color,c.trendlineColor),A(l.alpha,c.trendlineAlpha,40)),from:x,to:P,label:h,zIndex:!c.is3d&&A(l.showontop,c.showTrendlinesOnTop)==="1"?5:3,tooltext:w,alwaysVisible:l.alwaysVisible}):T.plotLines.push({isTrend:!0,color:ka(A(l.color,c.trendlineColor,c.trendlineColor),A(l.alpha,c.trendlineAlpha,
99)),value:x,to:P,width:i,dashStyle:A(l.dashed,c.trendlinesAreDashed)=="1"?Za(s(l.dashlen,c.trendlinesDashLen),s(l.dashgap,c.trendlinesDashGap),i):void 0,label:h,zIndex:!c.is3d&&A(l.showontop,c.showTrendlinesOnTop)==="1"?5:3,tooltext:w})}}}}}(),Za=function(a,b,c,f){return f||f===void 0?[a,b]:q},Va=function(){},Wa=function(a,b,c){var f,g=Wa[a];if(!g)g=function(){},g.prototype=c instanceof Va?c:new Va,g.prototype.constructor=g,g=Wa[a]=new g;if(c)g.base=c;g.name=a;for(f in b)switch(typeof b[f]){case "object":if(b[f]instanceof
Va){g[f]=b[f][f];break}default:g[f]=b[f];break;case "undefined":delete g[f]}return this instanceof Wa?(a=function(){},a.prototype=g,a.prototype.constructor=a,new a):g};k.extend(k.hcLib,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:q,COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",OBJECTSTRING:"object",COMMASTRING:",",ZEROSTRING:B,SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",
DECIMALSTRING:d,STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",regex:{stripWhitespace:w,dropHash:aa,startsRGBA:M,cleanColorCode:K,breakPlaceholder:W,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,b,c,f){var g=jQuery.Event(b),
t="detached"+b;extend(g,c);a[b]&&(a[t]=a[b],a[b]=null);jQuery(a).trigger(g);a[t]&&(a[b]=a[t],a[t]=null);f&&!g.isDefaultPrevented()&&f(g)},addEvent:b,removeEvent:a,getTouchEvent:f,extend2:sa,deltend:function(a,b){if(typeof a!=="object"||typeof b!=="object")return null;Aa(a,b);return a},imprint:function(a,b,c){var f;if(typeof a!=="object"||a===null)return b;if(typeof b!=="object"||b===null)return a;for(f in b)if(a[f]===void 0||!c&&a[f]===null)a[f]=b[f];return a},pluck:A,pluckNumber:s,getFirstDefinedValue:function(){var a,
b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0&&a!=q))return a},createElement:function(a,b,c){var a=h.createElement(a),f;for(f in b)a.setAttribute(f,b[f]);c&&c.appendChild&&c.appendChild(a);return a},hashify:function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},pluckFontSize:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a<1?1:a;return 1},getValidValue:x,getPosition:L,getViewPortDimension:n,
bindSelectionEvent:function(c,f,e){var e=e||{},d=c.options.chart,g=c.container,t=d.zoomType,p=sa({},e.attr||{}),e=p["stroke-width"]=s(p.strokeWidth,p["stroke-width"],1),o=L(g),e={chart:c,zoomX:/x/.test(t),zoomY:/y/.test(t),canvasY:c.canvasTop,canvasX:c.canvasLeft,canvasW:c.canvasWidth,canvasH:c.canvasHeight,canvasX2:c.canvasLeft+c.canvasWidth,canvasY2:c.canvasTop+c.canvasHeight,strokeWidth:e,chartPosLeft:o.left,chartPosTop:o.top,attr:p,callback:f};p.stroke=z(p.stroke,"rgba(51,153,255,0.8)");p.fill=
z(p.fill,"rgba(185,213,241,0.3)");p.ishot=!0;g&&(a(g,"dragstart drag dragend",X),b(g,"dragstart drag dragend",X,e));d.link&&(a(c.container,"mouseup mousedown",S),b(c.container,"mouseup mousedown",S,e))},createContextMenu:function(a){var b=a.chart,c=b.smartLabel,f=a.labels,g=a.hover||{fill:"rgba(64, 64, 64, 1)"},t=a.attrs||{fill:"rgba(255, 255, 255, 1)"},p=f&&f.style||{fontSize:"12px",color:"000000"},e=f&&f.attrs||{},d=f&&f.hover||{color:"FFFFFF"},o=a.items,s=a.position,n=a.verticalPadding||5,r=a.horizontalPadding||
10,l=k.hcLib.Raphael,v={},h,j,w;if(b)h=L(b.container);else return!1;var i=function(){w=this;var a=v.items,b=a.length,g=0,f=0,m=0,G=0,d;if(!v.menuItems)v.menuItems=[];for(;b--;)d=a[b],d=c.getOriSize(d.text),m||(m=d.height+2*n),g+=m,f=Math.max(f,d.width+2*r);v.height=g;v.width=f;v.itemH=m;w.setSize(f+5,g+5);v.menuRect?v.menuRect.attr({width:f,height:g}):v.menuRect=w.rect(0,0,f,g,0).shadow(!0).attr({"stroke-width":1});g=a.length;for(b=0;b<g;b+=1)d=a[b],v.menuItems[b]?v.menuItems[b].label.attr({text:d.text}):
(v.menuItems[b]={},v.menuItems[b].box=w.rect(0,G,f,m,0).attr({stroke:"none"}).attr(t).click(A).hover(Q,S),v.menuItems[b].label=w.text(r/2,G+m/2,d.text).attr({"text-anchor":"start"}).attr(e).css(p).click(A).hover(Q,S),v.menuItems[b].box._itemIdx=b,v.menuItems[b].label._itemIdx=b,G+=m);for(;v.menuItems[b];)v.menuItems[b].box.remove(),v.menuItems[b].label.remove(),v.menuItems.splice(b,1)},x=function(a){var u=a.x,a=a.y,g={x:u+h.left,y:a+h.top},c=v.width,m=v.height,f=b.chartHeight;u+c>b.chartWidth&&u-
c>0&&(g.x-=c);a+m>f&&a-m>0&&(g.y-=m);return g},P=function(){v.hide()},Q=function(){var a=v.menuItems[this._itemIdx];j&&clearTimeout(j);a.box.attr(g);a.label.css(d)},S=function(){var a=v.menuItems[this._itemIdx];a.box.attr(t);a.label.css(p);j=setTimeout(v.hide,800)},A=function(a){var b=v.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);v.hide()};v.showItem=function(a){var b=this.menuItems[a],g=this.height,c=this.itemH;if(b&&b._isHidden){g=this.height=g+c;this.menuRect.attr({height:g});b.box.show();
b.label.show();b._isHidden=!1;b=x(s);this.left=b.x;this.top=b.y;for(a+=1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y+c}),b.label.attr({y:b.label.attrs.y+c}),a+=1}};v.hideItem=function(a){var b=this.menuItems[a],g=this.height,c=this.itemH;if(b&&!b._isHidden){b.box.hide();b.label.hide();g=this.height=g-c;this.menuRect.attr({height:g});b._isHidden=!0;b=x(s);this.left=b.x;this.top=b.y;for(a+=1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y-c}),b.label.attr({y:b.label.attrs.y-c}),a+=1}};v.redraw=
function(){var a=this.paper;this.items=o;a?i.call(this.paper):s&&s.x!==void 0&&s.y!==void 0?(this.paper=l(0,0,100,100),i.call(this.paper),a=x(s),this.left=a.x,this.top=a.y,this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px"):(this.paper=l(0,0,100,100),i.call(this.paper))};v.show=function(a){var b=this.menuItems.length;this.visible=!0;a&&a.x!==void 0&&a.y!==void 0?(a=x(a),this.paper.canvas.style.left=a.x+"px",this.paper.canvas.style.top=a.y+"px"):(this.paper.canvas.style.left=
this.left+"px",this.paper.canvas.style.top=this.top+"px");for(this.menuRect.show();b--;)a=this.menuItems[b],a._isHidden||(a.box.show(),a.label.show());setTimeout(function(){l.click(P)},50)};v.hide=function(){this.visible=!1;v.paper.forEach(function(a){a.hide()});v.paper.canvas.style.left=-v.width+"px";v.paper.canvas.style.top=-v.height+"px";l.unclick(P)};v.update=function(a){if(a&&a.length)this.items=a,this.redraw()};v.updatePosition=function(a){var g={left:h.left,top:h.top};h=L(b.container);a?(s=
a,a=x(a),this.left=a.x,this.top=a.y):(this.left-=g.left-h.left,this.top-=g.top-h.top)};v.add=function(a){var b=this.paper,g=this.menuItems,c=g.length;g[c]={};g[c].box=b.rect(0,this.height,this.width,this.itemH,0).attr(t).hover(Q,S);v.menuItems[c].label=b.text(this.width/2,this.height+this.itemH/2,a.text).attr(e).css(p).hover(Q,S);v.menuItems[c].box._itemIdx=c;v.menuItems[c].label._itemIdx=c;this.height+=this.itemH;this.menuRect.attr({height:this.height})};v.removeItems=function(){for(var a=this.menuItems,
b=a&&a.length,g;b--;)g=a[b],g.box&&g.box.remove&&g.box.remove(),g.label&&g.label.remove&&g.label.remove();delete this.menuItems;delete this.items};v.setPosition=function(a){a.x!==void 0&&a.y!==void 0&&this.paper.setViewBox(a.x,a.y,this.width,this.height)};v.destroy=function(){this.removeItems();this.menuRect.remove()};o&&o.length&&(v.redraw(),v.hide());return v},getDefinedColor:function(a,b){return!a&&a!=0&&a!=!1?b:a},getFirstValue:z,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(w,q);a==
q&&(a="000000");return a.replace(aa,"#")},getColorCodeString:function(a,b){var c="",f,g,t=0,p=b.split(",");for(g=p.length;t<g;t+=1)f=p[t].split("-"),c+=f.length===2?f[0].indexOf("dark")!=="-1"?oa(a,100-parseInt(f[1],10))+",":Ka(a,100-parseInt(f[1],10))+",":p[t]+",";return c.substring(0,c.length-1)},pluckColor:function(a){if(x(a))return a=a.split(",")[0],a=a.replace(w,q),a==q&&(a="000000"),a.replace(aa,"#")},getFirstAlpha:function(a){a=parseInt(a,10);if(isNaN(a)||a>100||a<0)a=100;return a},parsePointValue:o,
parseUnsafeString:v,toPrecision:function(a,b){var c=V(10,b);return $(a*c)/c},hasTouch:ia,getSentenceCase:function(a){a=a||q;return a.charAt(0).toUpperCase()+a.substr(1)},getCrispValues:function(a,b,c){var f=c%2/2,c=$(a+f)-f,a=$(a+b+f)-f-c;return{position:c,distance:a}},stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,b){var c=a.length,f;for(f=0;f<c;f++)a[f].ss_i=f;a.sort(function(a,c){var f=b(a,c);return f===0?a.ss_i-c.ss_i:f});for(f=0;f<c;f++)delete a[f].ss_i},hasSVG:R,isIE:e,
getLinkAction:function(a,b){var c=function(a){return a};return function(){var f=s((a.chart||a.map||{}).unescapelinks,1),g=z(this.link,q),t=g=A(g,this.options&&this.options.chart&&this.options.chart.link||q,this.series&&this.series.chart&&this.series.chart.options&&this.series.chart.options.chart&&this.series.chart.options.chart.link||q),p,e,d,o,n;if(g!==void 0){f&&(g=i.decodeURIComponent?i.decodeURIComponent(g):unescape(g));g=g.replace(/^\s+/,q).replace(/\s+$/,q);if(g.search(/^[a-z]*\s*[\-\:]\s*/i)!==
-1)d=g.split(/\s*[\-\:]\s*/)[0].toLowerCase(),n=d.length;switch(d){case "j":g=g.replace(/^j\s*\-/i,"j-");p=g.indexOf("-",2);p===-1?La(g.slice(2)):La(g.substr(2,p-2).replace(/\s/g,q),g.slice(p+1));break;case "javascript":J(g.replace(/^javascript\s*\:/i,q));break;case "n":g.replace(/^n\s*\-/i,"n-");i.open(c(g.slice(2),f));break;case "f":g=g.replace(/^f\s*\-/i,"f-");p=g.indexOf("-",2);p!==-1?(e=g.substr(2,p-2))&&i.frames[e]?i.frames[e].location=c(g.slice(p+1),f):i.open(c(g.slice(p+1),f),e):i.open(c(g.slice(2),
f));break;case "p":g=g.replace(/p\s*\-/i,"p-");p=g.indexOf("-",2);e=g.indexOf(",",2);p===-1&&(p=1);f=c(g.slice(p+1),f);i.open(f,g.substr(2,e-2),g.substr(e+1,p-e-1)).focus();break;case "newchart":case "newmap":g.charAt(n)===":"&&(p=g.indexOf("-",n+1),e=g.substring(n+1,p),n=p);p=g.indexOf("-",n+1);f=g.substring(n+1,p).toLowerCase();switch(f){case "xmlurl":case "jsonurl":o=g.substring(p+1,g.length);break;case "xml":case "json":f=g.substring(p+1,g.length);p={chart:{}};f=f.toLowerCase();if(a.linkeddata)for(o=
0;o<a.linkeddata.length;o+=1)a.linkeddata[o].id.toLowerCase()===f&&(p=a.linkeddata[o].linkedchart||a.linkeddata[o].linkedmap);o=p;f="json"}k.raiseEvent("LinkedChartInvoked",{alias:e,linkType:f.toUpperCase(),data:o},b);break;default:i.location.href=g}k.raiseEvent("linkclicked",{linkProvided:t,linkInvoked:g,linkAction:d&&d.toLowerCase()},b)}}},graphics:{parseAlpha:Ga,convertColor:ka,getDarkColor:Ka,getLightColor:oa,mapSymbolName:function(a,b){var c=da.circle,a=o(a);a>=3&&(c=(b?da.spoke:da.poly)+a);
return c},getColumnColor:function(a,b,c,f,g,t,p,e,d){var o,s;o=a.split(",");s=b.split(",");t=t.split(",");p=p.split(",");a=a.replace(/\s/g,q).replace(/\,$/,q);d?e={FCcolor:{color:o[0],alpha:s[0]}}:g?(a=o[0],s=s[0],e={FCcolor:{color:Ka(a,75)+","+oa(a,25)+","+Ka(a,80)+","+oa(a,65)+","+Ka(a,80),alpha:s+","+s+","+s+","+s+","+s,ratio:"0,10,13,57,20",angle:e?"90":"0"}},t=[Ka(a,70)]):(b=Ga(b,o.length),e={FCcolor:{color:a,alpha:b,ratio:c,angle:e?-f:f}});return[e,{FCcolor:{color:t[0],alpha:p[0]}}]},getAngle:function(a,
b,c){a=Math.atan(b/a)*180/Math.PI;c==2?a=180-a:c==3?a+=180:c==4&&(a=360-a);return a},parseColor:ma,getValidColor:function(a){return U.test(ma(a))&&a},HSBtoRGB:function(a){var b=a[0],c=0,f=0,g=0,e=[],e=a[1]/100,a=a[2]/100,p=b/60-Math.floor(b/60),d=a*(1-e),o=a*(1-p*e),e=a*(1-(1-p)*e);switch(Math.floor(b/60)%6){case 0:c=a;f=e;g=d;break;case 1:c=o;f=a;g=d;break;case 2:c=d;f=a;g=e;break;case 3:c=d;f=o;g=a;break;case 4:c=e;f=d;g=a;break;case 5:c=a,f=d,g=o}return e=[$(c*255),$(f*255),$(g*255)]},RGBtoHSB:function(a){var b=
a[0],c=a[1],a=a[2],f=Math.max(Math.max(b,c),a),g=Math.min(Math.min(b,c),a),e=0,p=0;f==g?e=0:f==b?e=(60*(c-a)/(f-g)+360)%360:f==c?e=60*(a-b)/(f-g)+120:f==a&&(e=60*(b-c)/(f-g)+240);p=f==0?0:(f-g)/f;return[$(e),$(p*100),$(f/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:function(a){var a=parseInt(a,16),b=Math.floor(a/65536),c=Math.floor((a-b*65536)/256);return[b,c,Math.floor(a-b*65536-c*256)]}},setImageDisplayMode:function(a,b,c,f,g,e,p,d){var o=
d.width*(f/100),f=d.height*(f/100),d={},s,n=e-g*2;s=p-g*2;var v=function(a,b,c,f,d,e){var p={};switch(a){case "top":p.y=g;break;case "bottom":p.y=e-f-g;break;case "middle":p.y=(e-f)/2}switch(b){case "left":p.x=g;break;case "right":p.x=d-c-g;break;case "middle":p.x=(d-c)/2}return p};switch(a){case "center":d.width=o;d.height=f;d.y=p/2-f/2;d.x=e/2-o/2;break;case "stretch":d.width=e-g*2;d.height=p-g*2;d.y=g;d.x=g;break;case "tile":d.width=o;d.height=f;d.tileInfo={};d.tileInfo.xCount=a=Math.ceil(n/o);
d.tileInfo.yCount=s=Math.ceil(s/f);alignObj=v(b,c,o*a,f*s,e,p);d.y=alignObj.y;d.x=alignObj.x;break;case "fit":a=o/f>n/s?n/o:s/f;d.width=o*a;d.height=f*a;alignObj=v(b,c,d.width,d.height,e,p);d.y=alignObj.y;d.x=alignObj.x;break;case "fill":a=o/f>n/s?s/f:n/o;d.width=o*a;d.height=f*a;alignObj=v(b,c,d.width,d.height,e,p);d.y=alignObj.y;d.x=alignObj.x;break;default:alignObj=v(b,c,o,f,e,p),d.width=o,d.height=f,d.y=alignObj.y,d.x=alignObj.x}return d},SmartLabelManager:Ca,setLineHeight:qa,NumberFormatter:Ma,
getAxisLimits:$a,createTrendLine:eb,getDashStyle:Za,axisLabelAdder:cb,chartAPI:Wa,createDialog:db,defaultPaletteOptions:{bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:[q,q,q,q,q],canvasBorderColor:["545454",
"545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],showShadow:[0,1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],anchorBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454",
"545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],
bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100","100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:[q,q,q,q,q],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,100,100,100,100],legendBgColor3D:["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],
toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A","666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]}})}})();
(function(k){k.fn.drag=function(d,e,h){var i=typeof d=="string"?d:"",q=k.isFunction(d)?d:k.isFunction(e)?e:null;i.indexOf("drag")!==0&&(i="drag"+i);h=(d==q?e:h)||{};return q?this.bind(i,h,q):this.trigger(i)};var i=k.event,q="ontouchstart"in document.documentElement,B=q?"touchstart":"mousedown",d=q?"touchmove touchend":"mousemove mouseup",h=function(d,e){var h;if(!e.touchXY||!d.originalEvent)return d;h=d.originalEvent||d.sourceEvent;(h=h.changedTouches||h.touches)&&h.length&&k.extend(d,h[0]);return d},
R=i.special,e=R.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!1,click:!1,touchXY:!0},datakey:"dragdata",livekey:"livedrag",add:function(d){var h=k.data(this,e.datakey)||k.data(this,e.datakey,k.extend({related:0},e.defaults)),q=d.data||{};h.related+=1;if(!h.live&&d.selector)h.live=!0,i.add(this,"draginit."+e.livekey,e.delegate);k.each(e.defaults,function(d){q[d]!==void 0&&(h[d]=q[d])})},remove:function(){(k.data(this,e.datakey)||{}).related-=1},setup:function(){if(!k.data(this,
e.datakey)){var d=k.extend({related:0},e.defaults);k.data(this,e.datakey,d);i.add(this,B,e.init,d);this.attachEvent&&this.attachEvent("ondragstart",e.dontstart)}},teardown:function(){(k.data(this,e.datakey)||{}).related||(k.removeData(this,e.datakey),i.remove(this,B,e.init),i.remove(this,"draginit",e.delegate),e.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",e.dontstart))},init:function(w){var aa=w.data,B;if((B=(B=w.originalEvent||w.sourceEvent)?B.changedTouches||B.touches:[])&&B.length)if(B.length>
1)return;else h(w,aa);else if(aa.which>0&&w.which!=aa.which)return;if(!k(w.target).is(aa.not)&&(!aa.handle||k(w.target).closest(aa.handle,w.currentTarget).length))if(aa.propagates=1,aa.interactions=[e.interaction(this,aa)],aa.target=w.target,aa.pageX=w.pageX,aa.pageY=w.pageY,aa.dragging=null,B=e.hijack(w,"draginit",aa),aa.propagates){if((B=e.flatten(B))&&B.length)aa.interactions=[],k.each(B,function(){aa.interactions.push(e.interaction(this,aa))});aa.propagates=aa.interactions.length;aa.drop!==!1&&
R.drop&&R.drop.handler(w,aa);e.textselect(!1);i.add(document,d,e.handler,aa);if(!q)return!1}},interaction:function(d,h){return{drag:d,callback:new e.callback,droppable:[],offset:k(d)[h.relative?"position":"offset"]()||{top:0,left:0}}},handler:function(w){var k=w.data,B;if(!k.dragging&&(w.type==="mousemove"||w.type==="touchmove")){if(Math.pow(w.pageX-k.pageX,2)+Math.pow(w.pageY-k.pageY,2)<Math.pow(k.distance,2))return;w.target=k.target;e.hijack(w,"dragstart",k);if(k.propagates)k.dragging=!0}switch(w.type){case "touchmove":B=
w.originalEvent||w.sourceEvent,B=B.touches,k.dragging&&(B&&B.length>1||w.preventDefault(),h(w,k));case "mousemove":if(k.dragging){e.hijack(w,"drag",k);if(k.propagates){k.drop!==!1&&R.drop&&R.drop.handler(w,k);break}w.type="mouseup"}case "touchend":k.dragging&&h(w,k);case "mouseup":if(i.remove(document,d,e.handler),k.dragging&&(k.drop!==!1&&R.drop&&R.drop.handler(w,k),e.hijack(w,"dragend",k)),e.textselect(!0),k.click===!1&&k.dragging)jQuery.event.triggered=!0,setTimeout(function(){jQuery.event.triggered=
!1},20),k.dragging=!1}},delegate:function(d){var h=[],B,q=k.data(this,"events")||{};k.each(q.live||[],function(q,U){if(U.preType.indexOf("drag")===0&&(B=k(d.target).closest(U.selector,d.currentTarget)[0]))i.add(B,U.origType+"."+e.livekey,U.origHandler,U.data),k.inArray(B,h)<0&&h.push(B)});if(!h.length)return!1;return k(h).bind("dragend."+e.livekey,function(){i.remove(this,"."+e.livekey)})},hijack:function(d,h,B,q,W){if(B){var U={event:d.originalEvent,type:d.type},I=h.indexOf("drop")?"drag":"drop",
V,$=q||0,R,j,q=!isNaN(q)?q:B.interactions.length;d.type=h;d.sourceEvent=U.event;d.originalEvent=null;B.results=[];do if((R=B.interactions[$])&&!(h!=="dragend"&&R.cancelled)){j=e.properties(d,B,R);R.results=[];k(W||R[I]||B.droppable).each(function(q,n){V=(j.target=n)?i.handle.call(n,d,j):null;if(V===!1){if(I=="drag")R.cancelled=!0,B.propagates-=1;h=="drop"&&(R[I][q]=null)}else h=="dropinit"&&R.droppable.push(e.element(V)||n);if(h=="dragstart")R.proxy=k(e.element(V)||R.drag)[0];R.results.push(V);delete d.result;
if(h!=="dropinit")return V});B.results[$]=e.flatten(R.results);if(h=="dropinit")R.droppable=e.flatten(R.droppable);h=="dragstart"&&!R.cancelled&&j.update()}while(++$<q);d.type=U.type;d.originalEvent=U.event;return e.flatten(B.results)}},properties:function(d,h,i){var k=i.callback;k.drag=i.drag;k.proxy=i.proxy||i.drag;k.startX=h.pageX;k.startY=h.pageY;k.deltaX=d.pageX-h.pageX;k.deltaY=d.pageY-h.pageY;k.originalX=i.offset.left;k.originalY=i.offset.top;k.offsetX=d.pageX-(h.pageX-k.originalX);k.offsetY=
d.pageY-(h.pageY-k.originalY);k.drop=e.flatten((i.drop||[]).slice());k.available=e.flatten((i.droppable||[]).slice());return k},element:function(d){if(d&&(d.jquery||d.nodeType==1))return d},flatten:function(d){return k.map(d,function(d){return d&&d.jquery?k.makeArray(d):d&&d.length?e.flatten(d):d})},textselect:function(d){k(document)[d?"unbind":"bind"]("selectstart",e.dontstart).attr("unselectable",d?"off":"on").css("MozUserSelect",d?"":"none")},dontstart:function(){return!1},callback:function(){}};
e.callback.prototype={update:function(){R.drop&&this.available.length&&k.each(this.available,function(d){R.drop.locate(this,d)})}};R.draginit=R.dragstart=R.dragend=e})(jQuery);
(function(k){function i(i){var d=i||window.event,h=[].slice.call(arguments,1),q=0,e=0,w=0,i=k.event.fix(d);i.type="wheelchange";i.wheelDelta&&(q=i.wheelDelta/120);i.detail&&(q=-i.detail/3);w=q;d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS&&(w=0,e=-1*q);d.wheelDeltaY!==void 0&&(w=d.wheelDeltaY/120);d.wheelDeltaX!==void 0&&(e=-1*d.wheelDeltaX/120);h.unshift(i,q,e,w);return k.event.handle.apply(this,h)}var q=["DOMMouseScroll","mousewheel"];k.event.special.wheelchange={setup:function(){if(this.addEventListener)for(var k=
q.length;k;)this.addEventListener(q[--k],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var k=q.length;k;)this.removeEventListener(q[--k],i,!1);else this.onmousewheel=null}};k.fn.extend({wheelchange:function(i){return i?this.bind("wheelchange",i):this.trigger("wheelchange")},unwheelchange:function(i){return this.unbind("wheelchange",i)}})})(jQuery);
FusionCharts(["private","modules.renderer.js-raphael",function(){var k=this.hcLib,i,q=window.Raphael,B;(function(d){var h=/[\.\/]/,i=function(){},e=function(d,e){return d-e},k,q,B={n:{}},K=function(d,h){var i=q,B=Array.prototype.slice.call(arguments,2),$=K.listeners(d),R=0,j,ia=[],n={},r=[],l=k;k=d;for(var P=q=0,X=$.length;P<X;P++)"zIndex"in $[P]&&(ia.push($[P].zIndex),$[P].zIndex<0&&(n[$[P].zIndex]=$[P]));for(ia.sort(e);ia[R]<0;)if(j=n[ia[R++]],r.push(j.apply(h,B)),q)return q=i,r;for(P=0;P<X;P++)if(j=
$[P],"zIndex"in j)if(j.zIndex==ia[R]){r.push(j.apply(h,B));if(q)break;do if(R++,(j=n[ia[R]])&&r.push(j.apply(h,B)),q)break;while(j)}else n[j.zIndex]=j;else if(r.push(j.apply(h,B)),q)break;q=i;k=l;return r.length?r:null};K.listeners=function(d){var d=d.split(h),e=B,i,k,w,q,j,R,n,r=[e],l=[];w=0;for(q=d.length;w<q;w++){n=[];j=0;for(R=r.length;j<R;j++){e=r[j].n;i=[e[d[w]],e["*"]];for(k=2;k--;)if(e=i[k])n.push(e),l=l.concat(e.f||[])}r=n}return l};K.on=function(d,e){for(var k=d.split(h),w=B,q=0,aa=k.length;q<
aa;q++)w=w.n,!w[k[q]]&&(w[k[q]]={n:{}}),w=w[k[q]];w.f=w.f||[];q=0;for(aa=w.f.length;q<aa;q++)if(w.f[q]==e)return i;w.f.push(e);return function(d){if(+d==+d)e.zIndex=+d}};K.stop=function(){q=1};K.nt=function(d){if(d)return RegExp("(?:\\.|\\/|^)"+d+"(?:\\.|\\/|$)").test(k);return k};K.off=K.unbind=function(d,e){var i=d.split(h),k,w,q,j,R,n,r=[B];j=0;for(R=i.length;j<R;j++)for(n=0;n<r.length;n+=q.length-2){q=[n,1];k=r[n].n;if(i[j]!="*")k[i[j]]&&q.push(k[i[j]]);else for(w in k)k.hasOwnProperty(w)&&q.push(k[w]);
r.splice.apply(r,q)}j=0;for(R=r.length;j<R;j++)for(k=r[j];k.n;){if(e){if(k.f){n=0;for(i=k.f.length;n<i;n++)if(k.f[n]==e){k.f.splice(n,1);break}!k.f.length&&delete k.f}for(w in k.n)if(k.n.hasOwnProperty(w)&&k.n[w].f){q=k.n[w].f;n=0;for(i=q.length;n<i;n++)if(q[n]==e){q.splice(n,1);break}!q.length&&delete k.n[w].f}}else for(w in delete k.f,k.n)k.n.hasOwnProperty(w)&&k.n[w].f&&delete k.n[w].f;k=k.n}};K.once=function(d,e){var h=function(){var i=e.apply(this,arguments);K.unbind(d,h);return i};return K.on(d,
h)};K.version="0.3.4";K.toString=function(){return"You are running Eve 0.3.4"};typeof module!="undefined"&&module.exports?module.exports=K:typeof define!="undefined"?define("eve",[],function(){return K}):d.eve=K})(k);i=k.eve;(function(){function d(a){if(d.is(a,"function"))return ga?a():i.on("raphael.DOMload",a);else if(d.is(a,ta))return d._engine.create[L](d,a.splice(0,3+d.is(a[0],J))).add(a);else{var b=Array.prototype.slice.call(arguments,0);if(d.is(b[b.length-1],"function")){var c=b.pop();return ga?
c.call(d._engine.create[L](d,b)):i.on("raphael.DOMload",function(){c.call(d._engine.create[L](d,b))})}else return d._engine.create[L](d,arguments)}}function h(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)a[r](c)&&(b[c]=h(a[c]));return b}function k(){return this.hex}function e(a,b){for(var c=[],g=0,u=a.length;u-2*!b>g;g+=2){var m=[{x:+a[g-2],y:+a[g-1]},{x:+a[g],y:+a[g+1]},{x:+a[g+2],y:+a[g+3]},{x:+a[g+4],y:+a[g+5]}];b?g?u-4==g?m[3]={x:+a[0],y:+a[1]}:u-2==g&&(m[2]={x:+a[0],y:+a[1]},
m[3]={x:+a[2],y:+a[3]}):m[0]={x:+a[u-2],y:+a[u-1]}:u-4==g?m[3]=m[2]:g||(m[0]={x:+a[g],y:+a[g+1]});c.push(["C",(-m[0].x+6*m[1].x+m[2].x)/6,(-m[0].y+6*m[1].y+m[2].y)/6,(m[1].x+6*m[2].x-m[3].x)/6,(m[1].y+6*m[2].y-m[3].y)/6,m[2].x,m[2].y])}return c}function w(a,b,c,g,m,u,f,y,d){d==null&&(d=1);for(var d=(d>1?1:d<0?0:d)/2,D=[-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],O=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],e=
0,p=0;p<12;p++){var G=d*D[p]+d,t=G*(G*(-3*a+9*c-9*m+3*f)+6*a-12*c+6*m)-3*a+3*c,G=G*(G*(-3*b+9*g-9*u+3*y)+6*b-12*g+6*u)-3*b+3*g;e+=O[p]*o.sqrt(t*t+G*G)}return d*e}function q(a,b,c,g,m,u,f,y,d){if(!(d<0||w(a,b,c,g,m,u,f,y)<d)){var D=0.5,O=1-D,e;for(e=w(a,b,c,g,m,u,f,y,O);sa(e-d)>0.01;)D/=2,O+=(e<d?1:-1)*D,e=w(a,b,c,g,m,u,f,y,O);return O}}function M(a,b,c){for(var a=d._path2curve(a),b=d._path2curve(b),g,m,u,f,y,D,O,e,p,o,G=c?0:[],t=0,s=a.length;t<s;t++)if(p=a[t],p[0]=="M")g=y=p[1],m=D=p[2];else{p[0]==
"C"?(p=[g,m].concat(p.slice(1)),g=p[6],m=p[7]):(p=[g,m,g,m,y,D,y,D],g=y,m=D);for(var F=0,ya=b.length;F<ya;F++)if(o=b[F],o[0]=="M")u=O=o[1],f=e=o[2];else{o[0]=="C"?(o=[u,f].concat(o.slice(1)),u=o[6],f=o[7]):(o=[u,f,u,f,O,e,O,e],u=O,f=e);var n;var Ea=p,Ba=o;n=c;var ca=d.bezierBBox(Ea),r=d.bezierBBox(Ba);if(d.isBBoxIntersect(ca,r)){for(var ca=w.apply(0,Ea),r=w.apply(0,Ba),ca=~~(ca/5),r=~~(r/5),h=[],l=[],Ta={},Oa=n?0:[],E=0;E<ca+1;E++){var C=d.findDotsAtSegment.apply(d,Ea.concat(E/ca));h.push({x:C.x,
y:C.y,t:E/ca})}for(E=0;E<r+1;E++)C=d.findDotsAtSegment.apply(d,Ba.concat(E/r)),l.push({x:C.x,y:C.y,t:E/r});for(E=0;E<ca;E++)for(Ea=0;Ea<r;Ea++){var Ya=h[E],j=h[E+1],Ba=l[Ea],C=l[Ea+1],i=sa(j.x-Ya.x)<0.0010?"y":"x",k=sa(C.x-Ba.x)<0.0010?"y":"x",Y;b:{Y=Ya.x;var Ha=Ya.y,ba=j.x,ab=j.y,Xa=Ba.x,T=Ba.y,Ua=C.x,ha=C.y;if(!(v(Y,ba)<Q(Xa,Ua)||Q(Y,ba)>v(Xa,Ua)||v(Ha,ab)<Q(T,ha)||Q(Ha,ab)>v(T,ha))){var x=(Y-ba)*(T-ha)-(Ha-ab)*(Xa-Ua);if(x){var P=((Y*ab-Ha*ba)*(Xa-Ua)-(Y-ba)*(Xa*ha-T*Ua))/x,x=((Y*ab-Ha*ba)*(T-
ha)-(Ha-ab)*(Xa*ha-T*Ua))/x,N=+P.toFixed(2),za=+x.toFixed(2);if(!(N<+Q(Y,ba).toFixed(2)||N>+v(Y,ba).toFixed(2)||N<+Q(Xa,Ua).toFixed(2)||N>+v(Xa,Ua).toFixed(2)||za<+Q(Ha,ab).toFixed(2)||za>+v(Ha,ab).toFixed(2)||za<+Q(T,ha).toFixed(2)||za>+v(T,ha).toFixed(2))){Y={x:P,y:x};break b}}}Y=void 0}Y&&Ta[Y.x.toFixed(4)]!=Y.y.toFixed(4)&&(Ta[Y.x.toFixed(4)]=Y.y.toFixed(4),Ya=Ya.t+sa((Y[i]-Ya[i])/(j[i]-Ya[i]))*(j.t-Ya.t),Ba=Ba.t+sa((Y[k]-Ba[k])/(C[k]-Ba[k]))*(C.t-Ba.t),Ya>=0&&Ya<=1&&Ba>=0&&Ba<=1&&(n?Oa++:Oa.push({x:Y.x,
y:Y.y,t1:Ya,t2:Ba})))}n=Oa}else n=n?0:[];if(c)G+=n;else{ca=0;for(r=n.length;ca<r;ca++)n[ca].segment1=t,n[ca].segment2=F,n[ca].bez1=p,n[ca].bez2=o;G=G.concat(n)}}}return G}function K(a,b,c,g,m,u){a!=null?(this.a=+a,this.b=+b,this.c=+c,this.d=+g,this.e=+m,this.f=+u):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function W(){return this.x+A+this.y+A+this.width+" \u00d7 "+this.height}function U(a,b,c,g,m,u){function f(a,b){var Pa,c,g,m;g=a;for(c=0;c<8;c++){m=((D*g+d)*g+y)*g-a;if(sa(m)<b)return g;
Pa=(3*D*g+2*d)*g+y;if(sa(Pa)<1.0E-6)break;g-=m/Pa}Pa=0;c=1;g=a;if(g<Pa)return Pa;if(g>c)return c;for(;Pa<c;){m=((D*g+d)*g+y)*g;if(sa(m-a)<b)break;a>m?Pa=g:c=g;g=(c-Pa)/2+Pa}return g}var y=3*b,d=3*(g-b)-y,D=1-y-d,O=3*c,e=3*(m-c)-O,p=1-O-e;return function(a,b){var Pa=f(a,b);return((p*Pa+e)*Pa+O)*Pa}(a,1/(200*u))}function I(a,b){var c=[],g={};this.ms=b;this.times=1;if(a){for(var m in a)a[r](m)&&(g[da(m)]=a[m],c.push(da(m)));c.sort(Wa)}this.anim=g;this.top=c[c.length-1];this.percents=c}function V(a,g,
m,f,y,D){var m=da(m),e,p,o,G,t,s,F=a.ms,n={},ya={},Ea={};if(f){s=0;for(ca=va.length;s<ca;s++){var Ba=va[s];if(Ba.el.id==g.id&&Ba.anim==a){Ba.percent!=m?(va.splice(s,1),o=1):p=Ba;g.attr(Ba.totalOrigin);break}}}else f=+ya;s=0;for(var ca=a.percents.length;s<ca;s++)if(a.percents[s]==m||a.percents[s]>f*a.top){m=a.percents[s];t=a.percents[s-1]||0;F=F/a.top*(m-t);G=a.percents[s+1];e=a.anim[m];break}else f&&g.attr(a.anim[a.percents[s]]);if(e){if(p)p.initstatus=f,p.start=new Date-p.ms*f;else{for(var v in e)if(e[r](v)&&
(Ma[r](v)||g.ca[v]))switch(n[v]=g.attr(v),n[v]==null&&(n[v]=cb[v]),ya[v]=e[v],Ma[v]){case J:Ea[v]=(ya[v]-n[v])/F;break;case "colour":n[v]=d.getRGB(n[v]);s=d.getRGB(ya[v]);Ea[v]={r:(s.r-n[v].r)/F,g:(s.g-n[v].g)/F,b:(s.b-n[v].b)/F};break;case "path":s=fa(n[v],ya[v]);Ba=s[1];n[v]=s[0];Ea[v]=[];s=0;for(ca=n[v].length;s<ca;s++){Ea[v][s]=[0];for(var h=1,l=n[v][s].length;h<l;h++)Ea[v][s][h]=(Ba[s][h]-n[v][s][h])/F}break;case "transform":s=g._;if(ca=O(s[v],ya[v])){n[v]=ca.from;ya[v]=ca.to;Ea[v]=[];Ea[v].real=
!0;s=0;for(ca=n[v].length;s<ca;s++){Ea[v][s]=[n[v][s][0]];h=1;for(l=n[v][s].length;h<l;h++)Ea[v][s][h]=(ya[v][s][h]-n[v][s][h])/F}}else ca=g.matrix||new K,s={_:{transform:s.transform},getBBox:function(){return g.getBBox(1)}},n[v]=[ca.a,ca.b,ca.c,ca.d,ca.e,ca.f],u(s,ya[v]),ya[v]=s._.transform,Ea[v]=[(s.matrix.a-ca.a)/F,(s.matrix.b-ca.b)/F,(s.matrix.c-ca.c)/F,(s.matrix.d-ca.d)/F,(s.matrix.e-ca.e)/F,(s.matrix.f-ca.f)/F];break;case "csv":ca=c(e[v])[b](j);Ba=c(n[v])[b](j);if(v=="clip-rect"){n[v]=Ba;Ea[v]=
[];for(s=Ba.length;s--;)Ea[v][s]=(ca[s]-n[v][s])/F}ya[v]=ca;break;default:ca=[][x](e[v]);Ba=[][x](n[v]);Ea[v]=[];for(s=g.ca[v].length;s--;)Ea[v][s]=((ca[s]||0)-(Ba[s]||0))/F}s=e.easing;v=d.easing_formulas[s];if(!v)if((v=c(s).match(Ka))&&v.length==5){var Ta=v;v=function(a){return U(a,+Ta[1],+Ta[2],+Ta[3],+Ta[4],F)}}else v=gb;s=e.start||a.start||+new Date;Ba={anim:a,percent:m,timestamp:s,start:s+(a.del||0),status:0,initstatus:f||0,stop:!1,ms:F,easing:v,from:n,diff:Ea,to:ya,el:g,callback:e.callback,
prev:t,next:G,repeat:D||a.times,origin:g.attr(),totalOrigin:y};va.push(Ba);if(f&&!p&&!o&&(Ba.stop=!0,Ba.start=new Date-F*f,va.length==1))return hb();if(o)Ba.start=new Date-Ba.ms*f;va.length==1&&kb(hb)}i("raphael.anim.start."+g.id,g,a)}}function $(a){for(var b=0;b<va.length;b++)va[b].el.paper==a&&va.splice(b--,1)}B=d;d.version="2.1.0";d.eve=i;var ga,j=/[, ]+/,ia={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},n=/\{(\d+)\}/g,r="hasOwnProperty",l={doc:document,win:window},P=function(){};d.ca=
P.prototype;var X={was:Object.prototype[r].call(l.win,"Raphael"),is:l.win.Raphael},S=function(){this.ca=this.customAttributes=new P;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca},L="apply",x="concat",z=d._supportsTouch="createTouch"in l.doc,A=" ",c=String,b="split",a="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[b](A),f=d._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},s=c.prototype.toLowerCase,
o=Math,v=o.max,Q=o.min,sa=o.abs,Aa=o.pow,La=o.PI,J="number",ta="array",Ga=Object.prototype.toString;d._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var ka=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,ma={NaN:1,Infinity:1,"-Infinity":1},Ka=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,
oa=o.round,da=parseFloat,qa=parseInt,Ca=c.prototype.toUpperCase,cb=d._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"",
"stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,"shape-rendering":"default",target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},Ma=d._availableAnimAttrs={blur:J,"clip-rect":"csv","clip-path":"path",cx:J,cy:J,fill:"colour","fill-opacity":J,"font-size":J,height:J,opacity:J,path:"path",r:J,rx:J,ry:J,stroke:"colour","stroke-opacity":J,"stroke-width":J,transform:"transform",width:J,x:J,y:J},$a=
/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,db={hs:1,rg:1},Qa=/,?([achlmqrstvxz]),?/gi,fb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
eb=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,Za=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
d._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var Va={},Wa=function(a,b){return da(a)-da(b)},Ra=function(){},gb=function(a){return a},Na=d._rectPath=function(a,b,c,g,m){if(m)return[["M",a+m,b],["l",c-m*2,0],["a",m,m,0,0,1,m,m],["l",0,g-m*2],["a",m,m,0,0,1,-m,m],["l",m*2-c,0],["a",m,m,0,0,1,-m,-m],["l",0,m*2-g],["a",m,m,0,0,1,m,-m],["z"]];return[["M",a,b],["l",c,0],["l",0,g],["l",-c,0],["z"]]},bb=function(a,b,c,g){g==null&&(g=c);return[["M",a,b],["m",0,-g],["a",c,g,0,1,1,0,2*g],["a",c,g,0,1,1,0,-2*g],
["z"]]},g=d._getPath={group:function(){return!1},path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return bb(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return bb(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return Na(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return Na(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return Na(a.x,a.y,a.width,a.height)}},t=d.mapPath=function(a,b){if(!b)return a;var c,g,m,u,f,y,d,a=fa(a);m=0;for(f=a.length;m<f;m++){d=
a[m];u=1;for(y=d.length;u<y;u+=2)c=b.x(d[u],d[u+1]),g=b.y(d[u],d[u+1]),d[u]=c,d[u+1]=g}return a};d.pick=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))return a};d._g=l;d.type=l.win.SVGAngle||l.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(d.type=="VML"){var p=l.doc.createElement("div");p.innerHTML='<v:shape adj="1"/>';p=p.firstChild;p.style.behavior="url(#default#VML)";if(!(p&&typeof p.adj=="object"))return d.type=
"";p=null}d.svg=!(d.vml=d.type=="VML");d._Paper=S;d.fn=S=S.prototype=d.prototype;d._id=0;d._oid=0;d.is=function(a,b){b=s.call(b);if(b=="finite")return!ma[r](+a);if(b=="array")return a instanceof Array;if(b==="object"&&(a===void 0||a===null))return!1;return b=="null"&&a===null||b==typeof a&&a!==null||b=="object"&&a===Object(a)||b=="array"&&Array.isArray&&Array.isArray(a)||Ga.call(a).slice(8,-1).toLowerCase()==b};d.angle=function(a,b,c,g,m,u){if(m==null){a-=c;b-=g;if(!a&&!b)return 0;return(o.atan2(-b,
-a)*180/La+540)%360}else return d.angle(a,b,m,u)-d.angle(c,g,m,u)};d.rad=function(a){return a%360*La/180};d.deg=function(a){return a*180/La%360};d.snapTo=function(a,b,c){c=d.is(c,"finite")?c:10;if(d.is(a,ta))for(var g=a.length;g--;){if(sa(a[g]-b)<=c)return a[g]}else{a=+a;g=b%a;if(g<c)return b-g;if(g>a-c)return b-g+a}return b};d.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,b).toUpperCase()}}(/[xy]/g,function(a){var b=o.random()*16|0;return(a=="x"?
b:b&3|8).toString(16)});d.setWindow=function(a){i("raphael.setWindow",d,l.win,a);l.win=a;l.doc=l.win.document;d._engine.initWin&&d._engine.initWin(l.win)};var C=function(a){if(d.vml){var b=/^\s+|\s+$/g,g;try{var m=new ActiveXObject("htmlfile");m.write("<body>");m.close();g=m.body}catch(u){g=createPopup().document.body}var f=g.createTextRange();C=Da(function(a){try{g.style.color=c(a).replace(b,"");var Pa=f.queryCommandValue("ForeColor");return"#"+("000000"+((Pa&255)<<16|Pa&65280|(Pa&16711680)>>>16).toString(16)).slice(-6)}catch(m){return"none"}})}else{var y=
l.doc.createElement("i");y.title="Rapha\u00ebl Colour Picker";y.style.display="none";l.doc.body.appendChild(y);C=Da(function(a){y.style.color=a;return l.doc.defaultView.getComputedStyle(y,"").getPropertyValue("color")})}return C(a)},E=function(){return"hsb("+[this.h,this.s,this.b]+")"},Z=function(){return"hsl("+[this.h,this.s,this.l]+")"},ba=function(){return this.hex},ha=function(a,b,c){if(b==null&&d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a)c=a.b,b=a.g,a=a.r;if(b==null&&d.is(a,"string"))c=d.getRGB(a),
a=c.r,b=c.g,c=c.b;if(a>1||b>1||c>1)a/=255,b/=255,c/=255;return[a,b,c]},N=function(a,b,c,g){a*=255;b*=255;c*=255;a={r:a,g:b,b:c,hex:d.rgb(a,b,c),toString:ba};d.is(g,"finite")&&(a.opacity=g);return a};d.color=function(a){var b;d.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(b=d.hsb2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):d.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(b=d.hsl2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):(d.is(a,"string")&&(a=d.getRGB(a)),d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(b=
d.rgb2hsl(a),a.h=b.h,a.s=b.s,a.l=b.l,b=d.rgb2hsb(a),a.v=b.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=ba;return a};d.hsb2rgb=function(a,b,c,g){if(this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a)c=a.b,b=a.s,a=a.h,g=a.o;a*=360;var m,u,f,a=a%360/60;f=c*b;b=f*(1-sa(a%2-1));c=m=u=c-f;a=~~a;c+=[f,b,0,0,b,f][a];m+=[b,f,f,b,0,0][a];u+=[0,0,b,f,f,b][a];return N(c,m,u,g)};d.hsl2rgb=function(a,b,c,g){if(this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a)c=a.l,b=a.s,a=a.h;if(a>1||b>1||c>1)a/=360,
b/=100,c/=100;a*=360;var m,u,f,a=a%360/60;f=2*b*(c<0.5?c:1-c);b=f*(1-sa(a%2-1));c=m=u=c-f/2;a=~~a;c+=[f,b,0,0,b,f][a];m+=[b,f,f,b,0,0][a];u+=[0,0,b,f,f,b][a];return N(c,m,u,g)};d.rgb2hsb=function(a,b,c){var c=ha(a,b,c),a=c[0],b=c[1],c=c[2],g,m;g=v(a,b,c);m=g-Q(a,b,c);return{h:((m==0?0:g==a?(b-c)/m:g==b?(c-a)/m+2:(a-b)/m+4)+360)%6*60/360,s:m==0?0:m/g,b:g,toString:E}};d.rgb2hsl=function(a,b,c){var c=ha(a,b,c),a=c[0],b=c[1],c=c[2],g,m,u;m=v(a,b,c);g=Q(a,b,c);u=m-g;g=(m+g)/2;return{h:((u==0?0:m==a?(b-
c)/u:m==b?(c-a)/u+2:(a-b)/u+4)+360)%6*60/360,s:u==0?0:g<0.5?u/(2*g):u/(2-2*g),l:g,toString:Z}};d._path2string=function(){return this.join(",").replace(Qa,"$1")};var Da=d._cacher=function(a,b,c){function g(){var m=Array.prototype.slice.call(arguments,0),u=m.join("\u2400"),f=g.cache=g.cache||{},y=g.count=g.count||[];if(f[r](u)){a:for(var m=y,y=u,d=0,D=m.length;d<D;d++)if(m[d]===y){m.push(m.splice(d,1)[0]);break a}return c?c(f[u]):f[u]}y.length>=1E3&&delete f[y.shift()];y.push(u);f[u]=a[L](b,m);return c?
c(f[u]):f[u]}return g};d._preload=function(a,b){var c=l.doc.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;l.doc.body.removeChild(this)};c.onerror=function(){l.doc.body.removeChild(this)};l.doc.body.appendChild(c);c.src=a};d.getRGB=Da(function(a){var g;a&&d.is(a,"object")&&"opacity"in a&&(g=a.opacity);if(!a||(a=c(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:k};if(a=="none")return{r:-1,g:-1,
b:-1,hex:"none",toString:k};!(db[r](a.toLowerCase().substring(0,2))||a.charAt()=="#")&&(a=C(a));var m,u,f,y;if(a=a.match(ka)){a[2]&&(f=qa(a[2].substring(5),16),u=qa(a[2].substring(3,5),16),m=qa(a[2].substring(1,3),16));a[3]&&(f=qa((y=a[3].charAt(3))+y,16),u=qa((y=a[3].charAt(2))+y,16),m=qa((y=a[3].charAt(1))+y,16));a[4]&&(y=a[4][b]($a),m=da(y[0]),y[0].slice(-1)=="%"&&(m*=2.55),u=da(y[1]),y[1].slice(-1)=="%"&&(u*=2.55),f=da(y[2]),y[2].slice(-1)=="%"&&(f*=2.55),a[1].toLowerCase().slice(0,4)=="rgba"&&
(g=da(y[3])),y[3]&&y[3].slice(-1)=="%"&&(g/=100));if(a[5])return y=a[5][b]($a),m=da(y[0]),y[0].slice(-1)=="%"&&(m*=2.55),u=da(y[1]),y[1].slice(-1)=="%"&&(u*=2.55),f=da(y[2]),y[2].slice(-1)=="%"&&(f*=2.55),(y[0].slice(-3)=="deg"||y[0].slice(-1)=="\u00b0")&&(m/=360),a[1].toLowerCase().slice(0,4)=="hsba"&&(g=da(y[3])),y[3]&&y[3].slice(-1)=="%"&&(g/=100),d.hsb2rgb(m,u,f,g);if(a[6])return y=a[6][b]($a),m=da(y[0]),y[0].slice(-1)=="%"&&(m*=2.55),u=da(y[1]),y[1].slice(-1)=="%"&&(u*=2.55),f=da(y[2]),y[2].slice(-1)==
"%"&&(f*=2.55),(y[0].slice(-3)=="deg"||y[0].slice(-1)=="\u00b0")&&(m/=360),a[1].toLowerCase().slice(0,4)=="hsla"&&(g=da(y[3])),y[3]&&y[3].slice(-1)=="%"&&(g/=100),d.hsl2rgb(m,u,f,g);a={r:m,g:u,b:f,toString:k};a.hex="#"+(16777216|f|u<<8|m<<16).toString(16).slice(1);d.is(g,"finite")&&(a.opacity=g);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:k}},d);d.tintshade=Da(function(a,b){var c=d.getRGB(a),g;g=255;b<0&&(b*=-1,g=0);b>1&&(b=1);g=b===0?c:{r:g-(g-c.r)*b,g:g-(g-c.g)*b,b:g-(g-c.b)*b,toString:k};
g.hex=d.rgb(g.r,g.g,g.b);c.error&&(g.error=c.error);"opacity"in c?(g.rgba="rgba("+[g.r,g.g,g.b,c.opacity].join(",")+")",g.opacity=c.opacity):g.rgba="rgb("+[g.r,g.g,g.b].join(",")+")";return g},d);d.hsb=Da(function(a,b,c){return d.hsb2rgb(a,b,c).hex});d.hsl=Da(function(a,b,c){return d.hsl2rgb(a,b,c).hex});d.rgb=Da(function(a,b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});d.getColor=function(a){var a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75},b=this.hsb2rgb(a.h,a.s,
a.b);a.h+=0.075;if(a.h>1)a.h=0,a.s-=0.2,a.s<=0&&(this.getColor.start={h:0,s:1,b:a.b});return b.hex};d.getColor.reset=function(){delete this.start};d.parsePathString=function(a){if(!a)return null;var b=pa(a);if(b.arr)return T(b.arr);var g={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},m=[];d.is(a,ta)&&d.is(a[0],ta)&&(m=T(a));m.length||c(a).replace(fb,function(a,b,c){var u=[],a=b.toLowerCase();c.replace(Za,function(a,b){b&&u.push(+b)});a=="m"&&u.length>2&&(m.push([b][x](u.splice(0,2))),a="l",b=b=="m"?
"l":"L");if(a=="r")m.push([b][x](u));else for(;u.length>=g[a];)if(m.push([b][x](u.splice(0,g[a]))),!g[a])break});m.toString=d._path2string;b.arr=T(m);return m};d.parseTransformString=Da(function(a){if(!a)return null;var b=[];d.is(a,ta)&&d.is(a[0],ta)&&(b=T(a));b.length||c(a).replace(eb,function(a,c,g){var m=[];s.call(c);g.replace(Za,function(a,b){b&&m.push(+b)});b.push([c][x](m))});b.toString=d._path2string;return b});var pa=function(a){var b=pa.ps=pa.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b[r](c)&&
c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};d.findDotsAtSegment=function(a,b,c,g,m,u,f,y,d){var D=1-d,O=Aa(D,3),e=Aa(D,2),p=d*d,s=p*d,G=O*a+e*3*d*c+D*3*d*d*m+s*f,O=O*b+e*3*d*g+D*3*d*d*u+s*y,e=a+2*d*(c-a)+p*(m-2*c+a),s=b+2*d*(g-b)+p*(u-2*g+b),F=c+2*d*(m-c)+p*(f-2*m+c),p=g+2*d*(u-g)+p*(y-2*u+g),a=D*a+d*c,b=D*b+d*g,m=D*m+d*f,u=D*u+d*y,y=90-o.atan2(e-F,s-p)*180/La;(e>F||s<p)&&(y+=180);return{x:G,y:O,m:{x:e,y:s},n:{x:F,y:p},start:{x:a,y:b},end:{x:m,y:u},alpha:y}};d.bezierBBox=function(a,
b,c,g,m,u,f,y){d.is(a,"array")||(a=[a,b,c,g,m,u,f,y]);a=ua.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};d.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};d.isBBoxIntersect=function(a,b){var c=d.isPointInsideBBox;return c(b,a.x,a.y)||c(b,a.x2,a.y)||c(b,a.x,a.y2)||c(b,a.x2,a.y2)||c(a,b.x,b.y)||c(a,b.x2,b.y)||c(a,b.x,b.y2)||c(a,b.x2,b.y2)||(a.x<b.x2&&a.x>b.x||b.x<a.x2&&b.x>a.x)&&(a.y<b.y2&&a.y>b.y||b.y<a.y2&&
b.y>a.y)};d.pathIntersection=function(a,b){return M(a,b)};d.pathIntersectionNumber=function(a,b){return M(a,b,1)};d.isPointInsidePath=function(a,b,c){var g=d.pathBBox(a);return d.isPointInsideBBox(g,b,c)&&M(a,[["M",b,c],["H",g.x2+10]],1)%2==1};d._removedFactory=function(a){return function(){i("raphael.log",null,"Rapha\u00ebl: you are calling to method \u201c"+a+"\u201d of removed object",a)}};var la=d.pathBBox=function(a){var b=pa(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,
y2:0};for(var a=fa(a),c=0,g=0,m=[],u=[],f,y=0,d=a.length;y<d;y++)f=a[y],f[0]=="M"?(c=f[1],g=f[2],m.push(c),u.push(g)):(c=ua(c,g,f[1],f[2],f[3],f[4],f[5],f[6]),m=m[x](c.min.x,c.max.x),u=u[x](c.min.y,c.max.y),c=f[5],g=f[6]);a=Q[L](0,m);f=Q[L](0,u);m=v[L](0,m);u=v[L](0,u);u={x:a,y:f,x2:m,y2:u,width:m-a,height:u-f};b.bbox=h(u);return u},T=function(a){a=h(a);a.toString=d._path2string;return a},p=d._pathToRelative=function(a){var b=pa(a);if(b.rel)return T(b.rel);if(!d.is(a,ta)||!d.is(a&&a[0],ta))a=d.parsePathString(a);
var c=[],g=0,m=0,u=0,f=0,y=0;a[0][0]=="M"&&(g=a[0][1],m=a[0][2],u=g,f=m,y++,c.push(["M",g,m]));for(var D=a.length;y<D;y++){var O=c[y]=[],e=a[y];if(e[0]!=s.call(e[0]))switch(O[0]=s.call(e[0]),O[0]){case "a":O[1]=e[1];O[2]=e[2];O[3]=e[3];O[4]=e[4];O[5]=e[5];O[6]=+(e[6]-g).toFixed(3);O[7]=+(e[7]-m).toFixed(3);break;case "v":O[1]=+(e[1]-m).toFixed(3);break;case "m":u=e[1],f=e[2];default:for(var p=1,o=e.length;p<o;p++)O[p]=+(e[p]-(p%2?g:m)).toFixed(3)}else{c[y]=[];e[0]=="m"&&(u=e[1]+g,f=e[2]+m);O=0;for(p=
e.length;O<p;O++)c[y][O]=e[O]}e=c[y].length;switch(c[y][0]){case "z":g=u;m=f;break;case "h":g+=+c[y][e-1];break;case "v":m+=+c[y][e-1];break;default:g+=+c[y][e-2],m+=+c[y][e-1]}}c.toString=d._path2string;b.rel=T(c);return c},ja=d._pathToAbsolute=function(a){var b=pa(a),c;if(b.abs)return T(b.abs);if(!d.is(a,ta)||!d.is(a&&a[0],ta))a=d.parsePathString(a);if(!a||!a.length)return c=["M",0,0],c.toString=d._path2string,c;var g=0,m=0,u=0,f=0,y=0;c=[];a[0][0]=="M"&&(g=+a[0][1],m=+a[0][2],u=g,f=m,y++,c[0]=
["M",g,m]);for(var O=a.length==3&&a[0][0]=="M"&&a[1][0].toUpperCase()=="R"&&a[2][0].toUpperCase()=="Z",D,p=y,s=a.length;p<s;p++){c.push(y=[]);D=a[p];if(D[0]!=Ca.call(D[0]))switch(y[0]=Ca.call(D[0]),y[0]){case "A":y[1]=D[1];y[2]=D[2];y[3]=D[3];y[4]=D[4];y[5]=D[5];y[6]=+(D[6]+g);y[7]=+(D[7]+m);break;case "V":y[1]=+D[1]+m;break;case "H":y[1]=+D[1]+g;break;case "R":for(var o=[g,m][x](D.slice(1)),G=2,F=o.length;G<F;G++)o[G]=+o[G]+g,o[++G]=+o[G]+m;c.pop();c=c[x](e(o,O));break;case "M":u=+D[1]+g,f=+D[2]+
m;default:G=1;for(F=D.length;G<F;G++)y[G]=+D[G]+(G%2?g:m)}else if(D[0]=="R")o=[g,m][x](D.slice(1)),c.pop(),c=c[x](e(o,O)),y=["R"][x](D.slice(-2));else{o=0;for(G=D.length;o<G;o++)y[o]=D[o]}switch(y[0]){case "Z":g=u;m=f;break;case "H":g=y[1];break;case "V":m=y[1];break;case "M":u=y[y.length-2],f=y[y.length-1];default:g=y[y.length-2],m=y[y.length-1]}}c.toString=d._path2string;b.abs=T(c);return c},wa=function(a,b,c,g,m,u){var y=1/3,f=2/3;return[y*a+f*c,y*b+f*g,y*m+f*c,y*u+f*g,m,u]},ea=function(a,c,g,
m,u,y,f,d,D,O){var e=La*120/180,p=La/180*(+u||0),s=[],G,F=Da(function(a,b,c){var g=a*o.cos(c)-b*o.sin(c),a=a*o.sin(c)+b*o.cos(c);return{x:g,y:a}});if(O)ya=O[0],G=O[1],y=O[2],t=O[3];else{G=F(a,c,-p);a=G.x;c=G.y;G=F(d,D,-p);d=G.x;D=G.y;o.cos(La/180*u);o.sin(La/180*u);G=(a-d)/2;ya=(c-D)/2;t=G*G/(g*g)+ya*ya/(m*m);t>1&&(t=o.sqrt(t),g*=t,m*=t);var t=g*g,n=m*m,t=(y==f?-1:1)*o.sqrt(sa((t*n-t*ya*ya-n*G*G)/(t*ya*ya+n*G*G))),y=t*g*ya/m+(a+d)/2,t=t*-m*G/g+(c+D)/2,ya=o.asin(((c-t)/m).toFixed(9));G=o.asin(((D-
t)/m).toFixed(9));ya=a<y?La-ya:ya;G=d<y?La-G:G;ya<0&&(ya=La*2+ya);G<0&&(G=La*2+G);f&&ya>G&&(ya-=La*2);!f&&G>ya&&(G-=La*2)}if(sa(G-ya)>e){var s=G,n=d,v=D;G=ya+e*(f&&G>ya?1:-1);d=y+g*o.cos(G);D=t+m*o.sin(G);s=ea(d,D,g,m,u,0,f,n,v,[G,s,y,t])}y=G-ya;u=o.cos(ya);e=o.sin(ya);f=o.cos(G);G=o.sin(G);y=o.tan(y/4);g=4/3*g*y;y*=4/3*m;m=[a,c];a=[a+g*e,c-y*u];c=[d+g*G,D-y*f];d=[d,D];a[0]=2*m[0]-a[0];a[1]=2*m[1]-a[1];if(O)return[a,c,d][x](s);else{s=[a,c,d][x](s).join()[b](",");O=[];d=0;for(D=s.length;d<D;d++)O[d]=
d%2?F(s[d-1],s[d],p).y:F(s[d],s[d+1],p).x;return O}},na=function(a,b,c,g,m,u,y,f,d){var D=1-d;return{x:Aa(D,3)*a+Aa(D,2)*3*d*c+D*3*d*d*m+Aa(d,3)*y,y:Aa(D,3)*b+Aa(D,2)*3*d*g+D*3*d*d*u+Aa(d,3)*f}},ua=Da(function(a,b,c,g,m,u,y,f){var d=m-2*c+a-(y-2*m+c),D=2*(c-a)-2*(m-c),O=a-c,e=(-D+o.sqrt(D*D-4*d*O))/2/d,d=(-D-o.sqrt(D*D-4*d*O))/2/d,p=[b,f],G=[a,y];sa(e)>"1e12"&&(e=0.5);sa(d)>"1e12"&&(d=0.5);e>0&&e<1&&(e=na(a,b,c,g,m,u,y,f,e),G.push(e.x),p.push(e.y));d>0&&d<1&&(e=na(a,b,c,g,m,u,y,f,d),G.push(e.x),p.push(e.y));
d=u-2*g+b-(f-2*u+g);D=2*(g-b)-2*(u-g);O=b-g;e=(-D+o.sqrt(D*D-4*d*O))/2/d;d=(-D-o.sqrt(D*D-4*d*O))/2/d;sa(e)>"1e12"&&(e=0.5);sa(d)>"1e12"&&(d=0.5);e>0&&e<1&&(e=na(a,b,c,g,m,u,y,f,e),G.push(e.x),p.push(e.y));d>0&&d<1&&(e=na(a,b,c,g,m,u,y,f,d),G.push(e.x),p.push(e.y));return{min:{x:Q[L](0,G),y:Q[L](0,p)},max:{x:v[L](0,G),y:v[L](0,p)}}}),fa=d._path2curve=Da(function(a,b){var c=!b&&pa(a);if(!b&&c.curve)return T(c.curve);var g=ja(a),m=b&&ja(b),u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},y={x:0,y:0,bx:0,
by:0,X:0,Y:0,qx:null,qy:null},f=function(a,b){var c,g;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"][x](ea[L](0,[b.x,b.y][x](a.slice(1))));break;case "S":c=b.x+(b.x-(b.bx||b.x));g=b.y+(b.y-(b.by||b.y));a=["C",c,g][x](a.slice(1));break;case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"][x](wa(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"][x](wa(b.x,b.y,a[1],a[2],
a[3],a[4]));break;case "L":a=["C"][x]([b.x,b.y,a[1],a[2],a[1],a[2]]);break;case "H":a=["C"][x]([b.x,b.y,a[1],b.y,a[1],b.y]);break;case "V":a=["C"][x]([b.x,b.y,b.x,a[1],b.x,a[1]]);break;case "Z":a=["C"][x]([b.x,b.y,b.X,b.Y,b.X,b.Y])}return a},d=function(a,b){if(a[b].length>7){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,["C"][x](c.splice(0,6)));a.splice(b,1);e=v(g.length,m&&m.length||0)}},D=function(a,b,c,u,y){if(a&&b&&a[y][0]=="M"&&b[y][0]!="M")b.splice(y,0,["M",u.x,u.y]),c.bx=0,c.by=0,c.x=
a[y][1],c.y=a[y][2],e=v(g.length,m&&m.length||0)},O=0,e=v(g.length,m&&m.length||0);for(;O<e;O++){g[O]=f(g[O],u);d(g,O);m&&(m[O]=f(m[O],y));m&&d(m,O);D(g,m,u,y,O);D(m,g,y,u,O);var p=g[O],G=m&&m[O],s=p.length,o=m&&G.length;u.x=p[s-2];u.y=p[s-1];u.bx=da(p[s-4])||u.x;u.by=da(p[s-3])||u.y;y.bx=m&&(da(G[o-4])||y.x);y.by=m&&(da(G[o-3])||y.y);y.x=m&&G[o-2];y.y=m&&G[o-1]}if(!m)c.curve=T(g);return m?[g,m]:g},null,T);d._parseDots=Da(function(a){for(var b=[],c=0,g=a.length;c<g;c++){var m={},u=a[c].match(/^([^:]*):?([\d\.]*)/);
m.color=d.getRGB(u[1]);if(m.color.error)return null;m.opacity=m.color.opacity;m.color=m.color.hex;u[2]&&(m.offset=u[2]+"%");b.push(m)}c=1;for(g=b.length-1;c<g;c++)if(!b[c].offset){a=da(b[c-1].offset||0);u=0;for(m=c+1;m<g;m++)if(b[m].offset){u=b[m].offset;break}u||(u=100,m=g);u=da(u);for(u=(u-a)/(m-c+1);c<m;c++)a+=u,b[c].offset=a+"%"}return b});var H=d._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};d._tofront=function(a,
b){if(b.top===a)return!1;H(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=a;return!0};d._toback=function(a,b){if(b.bottom===a)return!1;H(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a;return!0};d._insertafter=function(a,b,c,g){H(a,c);a.parent=g;b===g.top&&(g.top=a);b.next&&(b.next.prev=a);a.next=b.next;a.prev=b;b.next=a};d._insertbefore=function(a,b,c,g){H(a,c);a.parent=g;b===g.bottom&&(g.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var y=d.toMatrix=function(a,
b){var c=la(a),g={_:{transform:""},getBBox:function(){return c}};u(g,b);return g.matrix};d.transformPath=function(a,b){return t(a,y(a,b))};var u=d._extractTransform=function(a,b){if(b==null)return a._.transform;var b=c(b).replace(/\.{3}|\u2026/g,a._.transform||""),g=d.parseTransformString(b),m=0,u=0,y=0,f=1,D=1,O=a._,y=new K;O.transform=g||[];if(g)for(var u=0,e=g.length;u<e;u++){var p=g[u],G=p.length,s=c(p[0]).toLowerCase(),o=p[0]!=s,t=o?y.invert():0,F;s=="t"&&G==3?o?(G=t.x(0,0),s=t.y(0,0),o=t.x(p[1],
p[2]),t=t.y(p[1],p[2]),y.translate(o-G,t-s)):y.translate(p[1],p[2]):s=="r"?G==2?(F=F||a.getBBox(1),y.rotate(p[1],F.x+F.width/2,F.y+F.height/2),m+=p[1]):G==4&&(o?(o=t.x(p[2],p[3]),t=t.y(p[2],p[3]),y.rotate(p[1],o,t)):y.rotate(p[1],p[2],p[3]),m+=p[1]):s=="s"?G==2||G==3?(F=F||a.getBBox(1),y.scale(p[1],p[G-1],F.x+F.width/2,F.y+F.height/2),f*=p[1],D*=p[G-1]):G==5&&(o?(o=t.x(p[3],p[4]),t=t.y(p[3],p[4]),y.scale(p[1],p[2],o,t)):y.scale(p[1],p[2],p[3],p[4]),f*=p[1],D*=p[2]):s=="m"&&G==7&&y.add(p[1],p[2],p[3],
p[4],p[5],p[6]);O.dirtyT=1;a.matrix=y}a.matrix=y;O.sx=f;O.sy=D;O.deg=m;O.dx=u=y.e;O.dy=y=y.f;f==1&&D==1&&!m&&O.bbox?(O.bbox.x+=+u,O.bbox.y+=+y):O.dirtyT=1},D=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return a.length==4?[b,0,a[2],a[3]]:[b,0];case "s":return a.length==5?[b,1,1,a[3],a[4]]:a.length==3?[b,1,1]:[b,1]}},O=d._equaliseTransform=function(a,b){for(var b=c(b).replace(/\.{3}|\u2026/g,a),a=d.parseTransformString(a)||[],b=d.parseTransformString(b)||
[],g=v(a.length,b.length),m=[],u=[],y=0,f,O,e,p;y<g;y++){e=a[y]||D(b[y]);p=b[y]||D(e);if(e[0]!=p[0]||e[0].toLowerCase()=="r"&&(e[2]!=p[2]||e[3]!=p[3])||e[0].toLowerCase()=="s"&&(e[3]!=p[3]||e[4]!=p[4]))return;m[y]=[];u[y]=[];f=0;for(O=v(e.length,p.length);f<O;f++)f in e&&(m[y][f]=e[f]),f in p&&(u[y][f]=p[f])}return{from:m,to:u}};d._getContainer=function(a,b,c,g){var m;m=g==null&&!d.is(a,"object")?l.doc.getElementById(a):a;if(m!=null){if(m.tagName)return b==null?{container:m,width:m.style.pixelWidth||
m.offsetWidth,height:m.style.pixelHeight||m.offsetHeight}:{container:m,width:b,height:c};return{container:1,x:a,y:b,width:c,height:g}}};d.pathToRelative=p;d._engine={};d.path2curve=fa;d.matrix=function(a,b,c,g,m,u){return new K(a,b,c,g,m,u)};(function(a){function g(a){return a[0]*a[0]+a[1]*a[1]}function m(a){var b=o.sqrt(g(a));a[0]&&(a[0]/=b);a[1]&&(a[1]/=b)}a.add=function(a,b,c,g,m,u){var y=[[],[],[]],f=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],b=[[a,c,m],[b,g,u],[0,0,1]];a&&a instanceof
K&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;a<3;a++)for(c=0;c<3;c++){for(g=m=0;g<3;g++)m+=f[a][g]*b[g][c];y[a][c]=m}this.a=y[0][0];this.b=y[1][0];this.c=y[0][1];this.d=y[1][1];this.e=y[0][2];this.f=y[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new K(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new K(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,
0,1,a,b)};a.scale=function(a,b,c,g){b==null&&(b=a);(c||g)&&this.add(1,0,0,1,c,g);this.add(a,0,0,b,0,0);(c||g)&&this.add(1,0,0,1,-c,-g)};a.rotate=function(a,b,c){var a=d.rad(a),b=b||0,c=c||0,g=+o.cos(a).toFixed(9),a=+o.sin(a).toFixed(9);this.add(g,a,-a,g,b,c);this.add(1,0,0,1,-b,-c)};a.x=function(a,b){return a*this.a+b*this.c+this.e};a.y=function(a,b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[c.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return d.svg?"matrix("+[this.get(0),
this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};a.offset=function(){return[this.e.toFixed(4),
this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var b=[[this.a,this.c],[this.b,this.d]];a.scalex=o.sqrt(g(b[0]));m(b[0]);a.shear=b[0][0]*b[1][0]+b[0][1]*b[1][1];b[1]=[b[1][0]-b[0][0]*a.shear,b[1][1]-b[0][1]*a.shear];a.scaley=o.sqrt(g(b[1]));m(b[1]);a.shear/=a.scaley;var c=-b[0][1],b=b[1][1];if(b<0){if(a.rotate=d.deg(o.acos(b)),c<0)a.rotate=360-a.rotate}else a.rotate=d.deg(o.asin(c));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=
!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this[b]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:"")+(a.scalex!=1||a.scaley!=1?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(K.prototype);
p=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);S.safari=navigator.vendor=="Apple Computer, Inc."&&(p&&p[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&p&&p[1]<8?function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){a.remove()});return!0}:Ra;for(var m=function(){this.returnValue=!1},G=function(){return this.originalEvent.preventDefault()},Ba=function(){this.cancelBubble=
!0},ca=function(){return this.originalEvent.stopPropagation()},ya=d.addEvent=function(){if(l.doc.addEventListener)return function(a,b,c,g){var m=z&&f[b]?f[b]:b,u=function(m){var u=l.doc.documentElement.scrollTop||l.doc.body.scrollTop,y=l.doc.documentElement.scrollLeft||l.doc.body.scrollLeft;if(z&&f[r](b))for(var d=0,D=m.targetTouches&&m.targetTouches.length;d<D;d++)if(m.targetTouches[d].target==a){D=m;m=m.targetTouches[d];m.originalEvent=D;m.preventDefault=G;m.stopPropagation=ca;break}return c.call(g,
m,m.clientX+y,m.clientY+u)};a.addEventListener(m,u,!1);return function(){a.removeEventListener(m,u,!1);return!0}};else if(l.doc.attachEvent)return function(a,b,c,g){var u=function(a){var a=a||l.win.event,b=a.clientX+(l.doc.documentElement.scrollLeft||l.doc.body.scrollLeft),u=a.clientY+(l.doc.documentElement.scrollTop||l.doc.body.scrollTop);a.preventDefault=a.preventDefault||m;a.stopPropagation=a.stopPropagation||Ba;return c.call(g,a,b,u)};a.attachEvent("on"+b,u);return function(){a.detachEvent("on"+
b,u);return!0}}}(),F=[],Ea=function(a){for(var b=a.clientX,c=a.clientY,g=l.doc.documentElement.scrollTop||l.doc.body.scrollTop,m=l.doc.documentElement.scrollLeft||l.doc.body.scrollLeft,u,y=F.length;y--;){u=F[y];if(z)for(var f=a.touches.length,d;f--;){if(d=a.touches[f],d.identifier==u.el._drag.id){b=d.clientX;c=d.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();var f=u.el.node,D=f.nextSibling,O=f.parentNode,e=f.style.display;l.win.opera&&O.removeChild(f);
f.style.display="none";d=u.el.paper.getElementByPoint(b,c);f.style.display=e;l.win.opera&&(D?O.insertBefore(f,D):O.appendChild(f));d&&i("raphael.drag.over."+u.el.id,u.el,d);b+=m;c+=g;i("raphael.drag.move."+u.el.id,u.move_scope||u.el,b-u.el._drag.x,c-u.el._drag.y,b,c,a)}},Oa=function(a){d.unmousemove(Ea).unmouseup(Oa);for(var b=F.length,c;b--;)c=F[b],c.el._drag={},i("raphael.drag.end."+c.el.id,c.end_scope||c.start_scope||c.move_scope||c.el,a);F=[]},Ha=d.el={},Ra=a.length;Ra--;)(function(a){d[a]=Ha[a]=
function(b,c){if(d.is(b,"function"))this.events=this.events||[],this.events.push({name:a,f:b,unbind:ya(this.shape||this.node||l.doc,a,b,c||this)});return this};d["un"+a]=Ha["un"+a]=function(b){for(var c=this.events||[],g=c.length;g--;)if(c[g].name==a&&c[g].f==b){c[g].unbind();c.splice(g,1);!c.length&&delete this.events;break}return this}})(a[Ra]);Ha.data=function(a,b){var c=Va[this.id]=Va[this.id]||{};if(arguments.length==1){if(d.is(a,"object")){for(var g in a)a[r](g)&&this.data(g,a[g]);return this}i("raphael.data.get."+
this.id,this,c[a],a);return c[a]}c[a]=b;i("raphael.data.set."+this.id,this,b,a);return this};Ha.removeData=function(a){a==null?Va[this.id]={}:Va[this.id]&&delete Va[this.id][a];return this};var Ta=[],Ya=function(){this.untrack=ya(l.doc,"mouseup",Xa,this)},Xa=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};Ha.mouseup=function(a,b,c){if(!c)return d.mouseup.apply(this,arguments);Ta.push(c={el:this,fn:a,scope:b});c.unbind=ya(this.shape||this.node||
l.doc,"mousedown",Ya,c);return this};Ha.unmouseup=function(a){for(var b=Ta.length,c;b--;)Ta[b].el===this&&Ta[b].fn===a&&(c=Ta[b],c.unbind(),c.untrack&&c.untrack(),Ta.splice(b,1));return c?this:d.unmouseup.apply(this,arguments)};Ha.hover=function(a,b,c,g){return this.mouseover(a,c).mouseout(b,g||c)};Ha.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var Ua=[];Ha.drag=function(a,b,c,g,m,u){function y(f){(f.originalEvent||f).preventDefault();var D=l.doc.documentElement.scrollTop||l.doc.body.scrollTop,
O=l.doc.documentElement.scrollLeft||l.doc.body.scrollLeft;this._drag.x=f.clientX+O;this._drag.y=f.clientY+D;this._drag.id=f.identifier;!F.length&&d.mousemove(Ea).mouseup(Oa);F.push({el:this,move_scope:g,start_scope:m,end_scope:u});b&&i.on("raphael.drag.start."+this.id,b);a&&i.on("raphael.drag.move."+this.id,a);c&&i.on("raphael.drag.end."+this.id,c);i("raphael.drag.start."+this.id,m||g||this,f.clientX+O,f.clientY+D,f)}this._drag={};Ua.push({el:this,start:y});this.mousedown(y);return this};Ha.onDragOver=
function(a){a?i.on("raphael.drag.over."+this.id,a):i.unbind("raphael.drag.over."+this.id)};Ha.undrag=function(){for(var a=Ua.length;a--;)Ua[a].el==this&&(this.unmousedown(Ua[a].start),Ua.splice(a,1),i.unbind("raphael.drag.*."+this.id));!Ua.length&&d.unmousemove(Ea).unmouseup(Oa)};Ha.follow=function(a,b,c){if(a.removed||a.constructor!==d.el.constructor)return this;a.followers.push({el:this,stalk:c={before:"insertBefore",after:"insertAfter"}[c],cb:b});c&&this[c](a);return this};Ha.unfollow=function(a){if(a.removed||
a.constructor!==d.el.constructor)return this;for(var b=0,c=a.followers.length;b<c;b++)if(a.followers[b].el===this){a.followers.splice(b,1);break}return this};var Y=Array.prototype.splice;S.group=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,Y.call(a,b,1)):c=void 0;a=d._engine.group(this,a[0],c);this.__set__&&this.__set__.push(a);return a};S.circle=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=
void 0,Y.call(a,b,1)):c=void 0;a=d._engine.circle(this,a[0]||0,a[1]||0,a[2]||0,c);this.__set__&&this.__set__.push(a);return a};S.rect=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,Y.call(a,b,1)):c=void 0;a=d._engine.rect(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,a[4]||0,c);this.__set__&&this.__set__.push(a);return a};S.ellipse=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,Y.call(a,b,1)):c=void 0;
a=d._engine.ellipse(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,c);this.__set__&&this.__set__.push(a);return a};S.path=function(){var a,b=arguments,c=b.length-1;(a=b[c])&&a.constructor===d.el.constructor?(b[c]=void 0,Y.call(b,c,1)):a=void 0;(b=b[0])&&!d.is(b,"string")&&d.is(b[0],ta);a=d._engine.path(d.format[L](d,arguments),this,a);this.__set__&&this.__set__.push(a);return a};S.image=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,Y.call(a,b,1)):c=void 0;
a=d._engine.image(this,a[0]||"about:blank",a[1]||0,a[2]||0,a[3]||0,a[4]||0,c);this.__set__&&this.__set__.push(a);return a};S.text=function(){var a;a=arguments;var b=a.length-1,g=a[b];g&&g.constructor===d.el.constructor?(a[b]=void 0,Y.call(a,b,1)):g=void 0;a=d._engine.text(this,a[0]||0,a[1]||0,c(a[2]||""),g);this.__set__&&this.__set__.push(a);return a};S.set=function(a){!d.is(a,"array")&&(a=Array.prototype.splice.call(arguments,0,arguments.length));var b=new Sa(a);this.__set__&&this.__set__.push(b);
return b};S.setStart=function(a){this.__set__=a||this.set()};S.setFinish=function(){var a=this.__set__;delete this.__set__;return a};S.setSize=function(a,b){return d._engine.setSize.call(this,a,b)};S.setViewBox=function(a,b,c,g,m){return d._engine.setViewBox.call(this,a,b,c,g,m)};S.top=S.bottom=null;S.raphael=d;S.getElementByPoint=function(a,b){var c=this.canvas,g=l.doc.elementFromPoint(a,b);if(l.win.opera&&g.tagName=="svg"){var m;m=c.getBoundingClientRect();var u=c.ownerDocument,y=u.body,u=u.documentElement;
m={y:m.top+(l.win.pageYOffset||u.scrollTop||y.scrollTop)-(u.clientTop||y.clientTop||0),x:m.left+(l.win.pageXOffset||u.scrollLeft||y.scrollLeft)-(u.clientLeft||y.clientLeft||0)};y=c.createSVGRect();y.x=a-m.x;y.y=b-m.y;y.width=y.height=1;m=c.getIntersectionList(y,null);m.length&&(g=m[m.length-1])}if(!g)return null;for(;g.parentNode&&g!=c.parentNode&&!g.raphael;)g=g.parentNode;g==this.canvas.parentNode&&(g=c);return g=g&&g.raphael?this.getById(g.raphaelid):null};S.getById=function(a){for(var b=this.bottom;b;){if(b.id==
a)return b;b=b.next}return null};S.forEach=function(a,b){for(var c=this.bottom;c;){if(a.call(b,c)===!1)break;c=c.next}return this};S.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(g){g.isPointInside(a,b)&&c.push(g)});return c};Ha.isPointInside=function(a,b){var c=this.realPath=this.realPath||g[this.type](this);return d.isPointInsidePath(c,a,b)};Ha.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=g[this.type](this),b.bboxwt=
la(this.realPath),b.bboxwt.toString=W,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=g[this.type](this);b.bbox=la(t(this.realPath,this.matrix));b.bbox.toString=W;b.dirty=b.dirtyT=0}return b.bbox};Ha.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};Ha.glow=function(a){if(this.type=="text")return null;for(var a=a||{},a={width:(a.width||10)+(+this.attr("stroke-width")||
1),fill:a.fill||!1,opacity:a.opacity||0.5,offsetx:a.offsetx||0,offsety:a.offsety||0,color:a.color||"#000"},b=a.width/2,c=this.paper,m=c.set(),u=this.realPath||g[this.type](this),u=this.matrix?t(u,this.matrix):u,y=1;y<b+1;y++)m.push(c.path(u).attr({stroke:a.color,fill:a.fill?a.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(a.width/b*y).toFixed(3),opacity:+(a.opacity/b).toFixed(3)}));return m.insertBefore(this).translate(a.offsetx,a.offsety)};var za=function(a,b,c,
g,m,u,y,f,D){return D==null?w(a,b,c,g,m,u,y,f):d.findDotsAtSegment(a,b,c,g,m,u,y,f,q(a,b,c,g,m,u,y,f,D))},a=function(a,b){return function(c,g,m){for(var c=fa(c),u,y,f,D,O="",e={},p=0,G=0,s=c.length;G<s;G++){f=c[G];if(f[0]=="M")u=+f[1],y=+f[2];else{D=za(u,y,f[1],f[2],f[3],f[4],f[5],f[6]);if(p+D>g){if(b&&!e.start){u=za(u,y,f[1],f[2],f[3],f[4],f[5],f[6],g-p);O+=["C"+u.start.x,u.start.y,u.m.x,u.m.y,u.x,u.y];if(m)return O;e.start=O;O=["M"+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,f[5],f[6]].join();p+=D;
u=+f[5];y=+f[6];continue}if(!a&&!b)return u=za(u,y,f[1],f[2],f[3],f[4],f[5],f[6],g-p),{x:u.x,y:u.y,alpha:u.alpha}}p+=D;u=+f[5];y=+f[6]}O+=f.shift()+f}e.end=O;u=a?p:b?e:d.findDotsAtSegment(u,y,f[0],f[1],f[2],f[3],f[4],f[5],1);u.alpha&&(u={x:u.x,y:u.y,alpha:u.alpha});return u}},ab=a(1),lb=a(),ib=a(0,1);d.getTotalLength=ab;d.getPointAtLength=lb;d.getSubpath=function(a,b,c){if(this.getTotalLength(a)-c<1.0E-6)return ib(a,b).end;a=ib(a,c,1);return b?ib(a,b).end:a};Ha.getTotalLength=function(){if(this.type==
"path"){if(this.node.getTotalLength)return this.node.getTotalLength();return ab(this.attrs.path)}};Ha.getPointAtLength=function(a){if(this.type=="path")return lb(this.attrs.path,a)};Ha.getSubpath=function(a,b){if(this.type=="path")return d.getSubpath(this.attrs.path,a,b)};a=d.easing_formulas={linear:function(a){return a},"<":function(a){return Aa(a,1.7)},">":function(a){return Aa(a,0.48)},"<>":function(a){var b=0.48-a/1.04,c=o.sqrt(0.1734+b*b),a=c-b,a=Aa(sa(a),1/3)*(a<0?-1:1),b=-c-b,b=Aa(sa(b),1/
3)*(b<0?-1:1),a=a+b+0.5;return(1-a)*3*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){if(a==!!a)return a;return Aa(2,-10*a)*o.sin((a-0.075)*2*La/0.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};a.easeIn=a["ease-in"]=a["<"];a.easeOut=a["ease-out"]=a[">"];a.easeInOut=a["ease-in-out"]=
a["<>"];a["back-in"]=a.backIn;a["back-out"]=a.backOut;var va=[],kb=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,16)},hb=function(){for(var a=+new Date,b=0;b<va.length;b++){var c=va[b];if(!c.el.removed&&!c.paused){var g=a-c.start,m=c.ms,u=c.easing,y=c.from,f=c.diff,D=c.to,O=c.el,e={},p,G={},s;c.initstatus?(g=(c.initstatus*c.anim.top-c.prev)/(c.percent-c.prev)*
m,c.status=c.initstatus,delete c.initstatus,c.stop&&va.splice(b--,1)):c.status=(c.prev+(c.percent-c.prev)*(g/m))/c.anim.top;if(!(g<0))if(g<m){var o=u(g/m),t;for(t in y)if(y[r](t)){switch(Ma[t]){case J:p=+y[t]+o*m*f[t];break;case "colour":p="rgb("+[jb(oa(y[t].r+o*m*f[t].r)),jb(oa(y[t].g+o*m*f[t].g)),jb(oa(y[t].b+o*m*f[t].b))].join(",")+")";break;case "path":p=[];g=0;for(u=y[t].length;g<u;g++){p[g]=[y[t][g][0]];D=1;for(G=y[t][g].length;D<G;D++)p[g][D]=+y[t][g][D]+o*m*f[t][g][D];p[g]=p[g].join(A)}p=
p.join(A);break;case "transform":if(f[t].real){p=[];g=0;for(u=y[t].length;g<u;g++){p[g]=[y[t][g][0]];D=1;for(G=y[t][g].length;D<G;D++)p[g][D]=y[t][g][D]+o*m*f[t][g][D]}}else p=function(a){return+y[t][a]+o*m*f[t][a]},p=[["m",p(0),p(1),p(2),p(3),p(4),p(5)]];break;case "csv":if(t=="clip-rect"){p=[];for(g=4;g--;)p[g]=+y[t][g]+o*m*f[t][g]}break;default:u=[][x](y[t]);p=[];for(g=O.ca[t].length;g--;)p[g]=+u[g]+o*m*f[t][g]}e[t]=p}O.attr(e);(function(a,b,c){setTimeout(function(){i("raphael.anim.frame."+a,b,
c)})})(O.id,O,c.anim)}else{(function(a,b,c){setTimeout(function(){i("raphael.anim.frame."+b.id,b,c);i("raphael.anim.finish."+b.id,b,c);d.is(a,"function")&&a.call(b)})})(c.callback,O,c.anim);O.attr(D);va.splice(b--,1);if(c.repeat>1&&!c.next){for(s in D)D[r](s)&&(G[s]=c.totalOrigin[s]);c.el.attr(G);V(c.anim,c.el,c.anim.percents[0],null,c.totalOrigin,c.repeat-1)}c.next&&!c.stop&&V(c.anim,c.el,c.next,null,c.totalOrigin,c.repeat)}}}d.svg&&O&&O.paper&&O.paper.safari();va.length&&kb(hb)},jb=function(a){return a>
255?255:a<0?0:a};Ha.animateWith=function(a,b,c,g,m,u){if(this.removed)return u&&u.call(this),this;c=c instanceof I?c:d.animation(c,g,m,u);V(c,this,c.percents[0],null,this.attr());c=0;for(g=va.length;c<g;c++)if(va[c].anim==b&&va[c].el==a){va[g-1].start=va[c].start;break}return this};Ha.onAnimation=function(a){a?i.on("raphael.anim.frame."+this.id,a):i.unbind("raphael.anim.frame."+this.id);return this};I.prototype.delay=function(a){var b=new I(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};
I.prototype.repeat=function(a){var b=new I(this.anim,this.ms);b.del=this.del;b.times=o.floor(v(a,0))||1;return b};d.animation=function(a,b,c,g){if(a instanceof I)return a;if(d.is(c,"function")||!c)g=g||c||null,c=null;var a=Object(a),b=+b||0,m={},u,y;for(y in a)a[r](y)&&da(y)!=y&&da(y)+"%"!=y&&(u=!0,m[y]=a[y]);return u?(c&&(m.easing=c),g&&(m.callback=g),new I({100:m},b)):new I(a,b)};Ha.animate=function(a,b,c,g){if(this.removed)return g&&g.call(this),this;a=a instanceof I?a:d.animation(a,b,c,g);V(a,
this,a.percents[0],null,this.attr());return this};Ha.setTime=function(a,b){a&&b!=null&&this.status(a,Q(b,a.ms)/a.ms);return this};Ha.status=function(a,b){var c=[],g=0,m,u;if(b!=null)return V(a,this,-1,Q(b,1)),this;else{for(m=va.length;g<m;g++)if(u=va[g],u.el.id==this.id&&(!a||u.anim==a)){if(a)return u.status;c.push({anim:u.anim,status:u.status})}if(a)return 0;return c}};Ha.pause=function(a){for(var b=0;b<va.length;b++)if(va[b].el.id==this.id&&(!a||va[b].anim==a)&&i("raphael.anim.pause."+this.id,this,
va[b].anim)!==!1)va[b].paused=!0;return this};Ha.resume=function(a){for(var b=0;b<va.length;b++)if(va[b].el.id==this.id&&(!a||va[b].anim==a)){var c=va[b];i("raphael.anim.resume."+this.id,this,c.anim)!==!1&&(delete c.paused,this.status(c.anim,c.status))}return this};Ha.stop=function(a){for(var b=0;b<va.length;b++)va[b].el.id==this.id&&(!a||va[b].anim==a)&&i("raphael.anim.stop."+this.id,this,va[b].anim)!==!1&&va.splice(b--,1);return this};i.on("raphael.remove",$);i.on("raphael.clear",$);Ha.toString=
function(){return"Rapha\u00ebl\u2019s object"};var Sa=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)if(a[b]&&(a[b].constructor==Ha.constructor||a[b].constructor==Sa))this[this.items.length]=this.items[this.items.length]=a[b],this.length++},a=Sa.prototype;a.push=function(){for(var a,b,c=0,g=arguments.length;c<g;c++)if((a=arguments[c])&&(a.constructor==Ha.constructor||a.constructor==Sa))b=this.items.length,this[b]=this.items[b]=a,this.length++;return this};
a.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};a.forEach=function(a,b){for(var c=0,g=this.items.length;c<g;c++)if(a.call(b,this.items[c],c)===!1)break;return this};for(var Ia in Ha)Ha[r](Ia)&&(a[Ia]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][L](c,b)})}}(Ia));a.attr=function(a,b){if(a&&d.is(a,ta)&&d.is(a[0],"object"))for(var c=0,g=a.length;c<g;c++)this.items[c].attr(a[c]);else{c=0;for(g=this.items.length;c<g;c++)this.items[c].attr(a,
b)}return this};a.clear=function(){for(;this.length;)this.pop()};a.splice=function(a,b){var a=a<0?v(this.length+a,0):a,b=v(0,Q(this.length-a,isNaN(b)&&this.length||b)),c=[],g=[],m=[],u;for(u=2;u<arguments.length;u++)m.push(arguments[u]);for(u=0;u<b;u++)g.push(this[a+u]);for(;u<this.length-a;u++)c.push(this[a+u]);var y=m.length;for(u=0;u<y+c.length;u++)this.items[a+u]=this[a+u]=u<y?m[u]:c[u-y];for(u=this.items.length=this.length-=b-y;this[u];)delete this[u++];return new Sa(g)};a.exclude=function(a){for(var b=
0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};a.animate=function(a,b,c,g){(d.is(c,"function")||!c)&&(g=c||null);var m=this.items.length,u=m,y=this,f;if(!m)return this;g&&(f=function(){!--m&&g.call(y)});c=d.is(c,"string")?c:f;b=d.animation(a,b,c,f);for(a=this.items[--u].animate(b);u--;)this.items[u]&&!this.items[u].removed&&this.items[u].animateWith(a,b,b);return this};a.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};a.getBBox=
function(){for(var a=[],b=[],c=[],g=[],m=this.items.length;m--;)if(!this.items[m].removed){var u=this.items[m].getBBox();a.push(u.x);b.push(u.y);c.push(u.x+u.width);g.push(u.y+u.height)}a=Q[L](0,a);b=Q[L](0,b);c=v[L](0,c);g=v[L](0,g);return{x:a,y:b,x2:c,y2:g,width:c-a,height:g-b}};a.clone=function(a){for(var a=new Sa,b=0,c=this.items.length;b<c;b++)a.push(this.items[b].clone());return a};a.toString=function(){return"Rapha\u00ebl\u2018s set"};d.registerFont=function(a){if(!a.face)return a;this.fonts=
this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],g;for(g in a.face)a.face[r](g)&&(b.face[g]=a.face[g]);this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=qa(a.face["units-per-em"],10);for(var m in a.glyphs)if(a.glyphs[r](m)&&(c=a.glyphs[m],b.glyphs[m]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var u in c.k)c[r](u)&&(b.glyphs[m].k[u]=c.k[u])}return a};S.getFont=
function(a,b,c,g){g=g||"normal";c=c||"normal";b=+b||{normal:400,bold:700,lighter:300,bolder:800}[b]||400;if(d.fonts){var m=d.fonts[a];if(!m){var a=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i"),u;for(u in d.fonts)if(d.fonts[r](u)&&a.test(u)){m=d.fonts[u];break}}var y;if(m){u=0;for(a=m.length;u<a;u++)if(y=m[u],y.face["font-weight"]==b&&(y.face["font-style"]==c||!y.face["font-style"])&&y.face["font-stretch"]==g)break}return y}};S.print=function(a,g,m,u,y,f,D){var f=f||"middle",D=
v(Q(D||0,1),-1),O=c(m)[b](""),p=0,e=0,G="";d.is(u,m)&&(u=this.getFont(u));if(u)for(var m=(y||16)/u.face["units-per-em"],s=u.face.bbox[b](j),y=+s[0],o=s[3]-s[1],t=0,f=+s[1]+(f=="baseline"?o+ +u.face.descent:o/2),s=0,F=O.length;s<F;s++){if(O[s]=="\n")e=n=p=0,t+=o;else{var ya=e&&u.glyphs[O[s-1]]||{},n=u.glyphs[O[s]];p+=e?(ya.w||u.w)+(ya.k&&ya.k[O[s]]||0)+u.w*D:0;e=1}n&&n.d&&(G+=d.transformPath(n.d,["t",p*m,t*m,"s",m,m,y,f,"t",(a-y)/m,(g-f)/m]))}return this.path(G).attr({fill:"#000",stroke:"none"})};
S.add=function(a){if(d.is(a,"array"))for(var b=this.set(),c=0,g=a.length,m;c<g;c++)m=a[c]||{},ia[r](m.type)&&b.push(this[m.type]().attr(m));return b};d.format=function(a,b){var c=d.is(b,ta)?[0][x](b):arguments;a&&d.is(a,"string")&&c.length-1&&(a=a.replace(n,function(a,b){return c[++b]==null?"":c[b]}));return a||""};d.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,g){var m=g;c.replace(b,function(a,b,c,g,u){b=b||g;m&&(b in m&&(m=
m[b]),typeof m=="function"&&u&&(m=m()))});return m=(m==null||m==g?a:m)+""};return function(b,g){return String(b).replace(a,function(a,b){return c(a,b,g)})}}();d.ninja=function(){X.was?l.win.Raphael=X.is:delete Raphael;return d};d.st=a;(function(a,b,c){function g(){/in/.test(a.readyState)?setTimeout(g,9):d.eve("raphael.DOMload")}if(a.readyState==null&&a.addEventListener)a.addEventListener(b,c=function(){a.removeEventListener(b,c,!1);a.readyState="complete"},!1),a.readyState="loading";g()})(document,
"DOMContentLoaded");X.was?l.win.Raphael=d:Raphael=d;i.on("raphael.DOMload",function(){ga=!0})})();window.Raphael.svg&&function(d){var h=String,i=parseFloat,e=parseInt,k=Math,q=k.max,B=k.abs,K=k.pow,W=/[, ]+/,U=/AppleWebKit/.test(d._g.win.navigator.userAgent),I=d.eve,V={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},$=d._shapeRenderingAttrs={speed:"optimizeSpeed",crisp:"crispEdges",
precision:"geometricPrecision"},ga={};d._url=/msie/i.test(navigator.userAgent)&&!window.opera?"":window.location.href.replace(/#.*?$/,"");d.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\u00ebl "+this.version};var j=d.createNode=function(c,b){if(b){typeof c=="string"&&(c=j(c));for(var a in b)b.hasOwnProperty(a)&&(a.substring(0,6)=="xlink:"?c.setAttributeNS("http://www.w3.org/1999/xlink",a.substring(6),h(b[a])):c.setAttribute(a,h(b[a])))}else c=d._g.doc.createElementNS("http://www.w3.org/2000/svg",
c);return c},ia=function(c,b){var a="linear",f=c.id+b,e=0.5,o=0.5,n,r,l,x,P=c.node,S=c.paper,A=P.style,z=d._g.doc.getElementById(f);if(!z&&S.defs){b=h(b).replace(d._radial_gradient,function(b,c){a="radial";var c=c&&c.split(",")||[],f=c[0],d=c[1],h=c[2],j=c[3],P=c[4],S=c[5];f&&d&&(e=i(f),o=i(d),f=(o>0.5)*2-1,K(e-0.5,2)+K(o-0.5,2)>0.25&&(o=k.sqrt(0.25-K(e-0.5,2))*f+0.5)&&o!=0.5&&(o=o.toFixed(5)-1.0E-5*f));h&&(n=/\%/.test(h)?h:i(h));j&&P&&(r=j,l=P);S&&(x=S);return""});b=b.split(/\s*\-\s*/);if(a=="linear"){z=
b.shift();z=-i(z);if(isNaN(z))return null;var X=[0,0,k.cos(d.rad(z)),k.sin(d.rad(z))],z=1/(q(B(X[2]),B(X[3]))||1);X[2]*=z;X[3]*=z;X[2]<0&&(X[0]=-X[2],X[2]=0);X[3]<0&&(X[1]=-X[3],X[3]=0)}var L=d._parseDots(b);if(!L)return null;f=f.replace(/[\(\)\s,\xb0#]/g,"_");c.gradient&&f!=c.gradient.id&&(S.defs.removeChild(c.gradient),delete c.gradient);if(!c.gradient){z=j(a+"Gradient",{id:f});c.gradient=z;a=="radial"?(x&&z.setAttribute("gradientUnits",h(x)),n!==void 0&&z.setAttribute("r",h(n)),r!==void 0&&l!==
void 0?(z.setAttribute("cx",h(r)),z.setAttribute("cy",h(l))):(z.setAttribute("fx",h(e)),z.setAttribute("fy",h(o)))):j(z,{x1:X[0],y1:X[1],x2:X[2],y2:X[3],gradientTransform:c.matrix.invert()});S.defs.appendChild(z);S=0;for(X=L.length;S<X;S++)z.appendChild(j("stop",{offset:L[S].offset?L[S].offset:S?"100%":"0%","stop-color":L[S].color||"#fff","stop-opacity":L[S].opacity===void 0?1:L[S].opacity}))}}j(P,{fill:"url('"+d._url+"#"+f+"')",opacity:1,"fill-opacity":1});A.fill="";A.opacity=1;return A.fillOpacity=
1},n=function(c){var b=c.getBBox(1);j(c.pattern,{patternTransform:c.matrix.invert()+" translate("+b.x+","+b.y+")"})},r=function(c,b,a){if(c.type=="path"){for(var f=h(b).toLowerCase().split("-"),e=c.paper,o=a?"end":"start",n=c.node,r=c.attrs,l=r["stroke-width"],i=f.length,k="classic",x,P,w=3,S=3,z=5;i--;)switch(f[i]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":k=f[i];break;case "wide":S=5;break;case "narrow":S=2;break;case "long":w=5;break;case "short":w=2}k=="open"?
(w+=2,S+=2,z+=2,x=1,P=a?4:1,f={fill:"none",stroke:r.stroke}):(P=x=w/2,f={fill:r.stroke,stroke:"none"});c._.arrows?a?(c._.arrows.endPath&&ga[c._.arrows.endPath]--,c._.arrows.endMarker&&ga[c._.arrows.endMarker]--):(c._.arrows.startPath&&ga[c._.arrows.startPath]--,c._.arrows.startMarker&&ga[c._.arrows.startMarker]--):c._.arrows={};if(k!="none"){var i="raphael-marker-"+k,q="raphael-marker-"+o+k+w+S;d._g.doc.getElementById(i)?ga[i]++:(e.defs.appendChild(j(j("path"),{"stroke-linecap":"round",d:V[k],id:i})),
ga[i]=1);var A=d._g.doc.getElementById(q);A?(ga[q]++,w=A.getElementsByTagName("use")[0]):(A=j(j("marker"),{id:q,markerHeight:S,markerWidth:w,orient:"auto",refX:P,refY:S/2}),w=j(j("use"),{"xlink:href":"#"+i,transform:(a?"rotate(180 "+w/2+" "+S/2+") ":"")+"scale("+w/z+","+S/z+")","stroke-width":(1/((w/z+S/z)/2)).toFixed(4)}),A.appendChild(w),e.defs.appendChild(A),ga[q]=1);j(w,f);e=x*(k!="diamond"&&k!="oval");a?(a=c._.arrows.startdx*l||0,l=d.getTotalLength(r.path)-e*l):(a=e*l,l=d.getTotalLength(r.path)-
(c._.arrows.enddx*l||0));f={};f["marker-"+o]="url('"+d._url+"#"+q+"')";if(l||a)f.d=Raphael.getSubpath(r.path,a,l);j(n,f);c._.arrows[o+"Path"]=i;c._.arrows[o+"Marker"]=q;c._.arrows[o+"dx"]=e;c._.arrows[o+"Type"]=k;c._.arrows[o+"String"]=b}else a?(a=c._.arrows.startdx*l||0,l=d.getTotalLength(r.path)-a):(a=0,l=d.getTotalLength(r.path)-(c._.arrows.enddx*l||0)),c._.arrows[o+"Path"]&&j(n,{d:Raphael.getSubpath(r.path,a,l)}),delete c._.arrows[o+"Path"],delete c._.arrows[o+"Marker"],delete c._.arrows[o+"dx"],
delete c._.arrows[o+"Type"],delete c._.arrows[o+"String"];for(f in ga)ga.hasOwnProperty(f)&&!ga[f]&&(c=d._g.doc.getElementById(f))&&c.parentNode.removeChild(c)}},l={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},P=function(c,b,a){var f=l[h(b).toLowerCase()];if(b=f||[].concat(b)){var e=c.attrs["stroke-width"]||"1",a={round:e,square:e,butt:0}[c.attrs["stroke-linecap"]||a["stroke-linecap"]]||
0,o,n=o=b.length;if(f)for(;o--;)b[o]=b[o]*e+(o%2?1:-1)*a;else for(o=0;o<n;o+=2)b[o]-=a,b[o+1]&&(b[o+1]+=a),b[o]<=0&&(b[o]=0.1);d.is(b,"array")&&j(c.node,{"stroke-dasharray":b.join(",")})}},X=function(c,b){var a=c.node,f=c.attrs,s=a.style.visibility;a.style.visibility="hidden";for(var o in b)if(b.hasOwnProperty(o)&&d._availableAttrs.hasOwnProperty(o)){var v=b[o];f[o]=v;switch(o){case "blur":c.blur(v);break;case "href":case "title":case "target":var l=a.parentNode;if(l.tagName.toLowerCase()!="a"){if(v==
"")break;var i=j("a");l.insertBefore(i,a);i.appendChild(a);l=i}o=="target"?l.setAttributeNS("http://www.w3.org/1999/xlink","show",v=="blank"?"new":v):l.setAttributeNS("http://www.w3.org/1999/xlink",o,v);a.titleNode=l;break;case "cursor":a.style.cursor=v;break;case "transform":c.transform(v);break;case "rotation":d.is(v,"array")?c.rotate.apply(c,v):c.rotate(v);break;case "arrow-start":r(c,v);break;case "arrow-end":r(c,v,1);break;case "clip-path":var k=!0;case "clip-rect":l=!k&&h(v).split(W);c._.clipispath=
!!k;if(k||l.length==4){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var i=j("clipPath"),x=j(k?"path":"rect");i.id=d.createUUID();j(x,k?{d:v?f["clip-path"]=d._pathToAbsolute(v):d._availableAttrs.path,fill:"none"}:{x:l[0],y:l[1],width:l[2],height:l[3]});i.appendChild(x);c.paper.defs.appendChild(i);j(a,{"clip-path":"url('"+d._url+"#"+i.id+"')"});c.clip=x}if(!v&&(v=a.getAttribute("clip-path")))(v=d._g.doc.getElementById(v.replace(/(^url\(#|\)$)/g,"")))&&v.parentNode.removeChild(v),
j(a,{"clip-path":""}),delete c.clip;break;case "path":if(c.type=="path")j(a,{d:v?f.path=d._pathToAbsolute(v):d._availableAttrs.path}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&r(c,c._.arrows.startString),"endString"in c._.arrows&&r(c,c._.arrows.endString,1));break;case "width":if(a.setAttribute(o,v),c._.dirty=1,f.fx)o="x",v=f.x;else break;case "x":f.fx&&(v=-f.x-(f.width||0));case "rx":if(o=="rx"&&c.type=="rect")break;case "cx":a.setAttribute(o,v);c.pattern&&n(c);c._.dirty=1;break;case "height":if(a.setAttribute(o,
v),c._.dirty=1,f.fy)o="y",v=f.y;else break;case "y":f.fy&&(v=-f.y-(f.height||0));case "ry":if(o=="ry"&&c.type=="rect")break;case "cy":a.setAttribute(o,v);c.pattern&&n(c);c._.dirty=1;break;case "r":c.type=="rect"?j(a,{rx:v,ry:v}):a.setAttribute(o,v);c._.dirty=1;break;case "src":c.type=="image"&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",v);break;case "stroke-width":if(c._.sx!=1||c._.sy!=1)v/=q(B(c._.sx),B(c._.sy))||1;c.paper._vbSize&&(v*=c.paper._vbSize);U&&v===0&&(v=1.0E-6);a.setAttribute(o,
v);f["stroke-dasharray"]&&P(c,f["stroke-dasharray"],b);c._.arrows&&("startString"in c._.arrows&&r(c,c._.arrows.startString),"endString"in c._.arrows&&r(c,c._.arrows.endString,1));break;case "stroke-dasharray":P(c,v,b);break;case "fill":var w=h(v).match(d._ISURL);if(w){var i=j("pattern"),z=j("image");i.id=d.createUUID();j(i,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});j(z,{x:0,y:0,"xlink:href":w[1]});i.appendChild(z);(function(a){d._preload(w[1],function(){var b=this.offsetWidth,f=this.offsetHeight;
j(a,{width:b,height:f});j(z,{width:b,height:f});c.paper.safari()})})(i);c.paper.defs.appendChild(i);j(a,{fill:"url('"+d._url+"#"+i.id+"')"});c.pattern=i;c.pattern&&n(c);break}l=d.getRGB(v);if(l.error){if((c.type=="circle"||c.type=="ellipse"||h(v).charAt()!="r")&&ia(c,v)){if("opacity"in f||"fill-opacity"in f)if(l=d._g.doc.getElementById(a.getAttribute("fill").replace(/^url\(#|\)$/g,"")))l=l.getElementsByTagName("stop"),j(l[l.length-1],{"stop-opacity":("opacity"in f?f.opacity:1)*("fill-opacity"in f?
f["fill-opacity"]:1)});f.gradient=v;f.fill="none";break}}else delete b.gradient,delete f.gradient,!d.is(f.opacity,"undefined")&&d.is(b.opacity,"undefined")&&j(a,{opacity:f.opacity}),!d.is(f["fill-opacity"],"undefined")&&d.is(b["fill-opacity"],"undefined")&&j(a,{"fill-opacity":f["fill-opacity"]});l.hasOwnProperty("opacity")&&j(a,{"fill-opacity":l.opacity>1?l.opacity/100:l.opacity});case "stroke":l=d.getRGB(v);a.setAttribute(o,l.hex);o=="stroke"&&l.hasOwnProperty("opacity")&&j(a,{"stroke-opacity":l.opacity>
1?l.opacity/100:l.opacity});o=="stroke"&&c._.arrows&&("startString"in c._.arrows&&r(c,c._.arrows.startString),"endString"in c._.arrows&&r(c,c._.arrows.endString,1));break;case "gradient":(c.type=="circle"||c.type=="ellipse"||h(v).charAt()!="r")&&ia(c,v);break;case "shape-rendering":f[o]=v=$[v]||v||"default";a.setAttribute(o,v);a.style.shapeRendering=v;break;case "line-height":case "vertical-align":break;case "visibility":v==="hidden"?c.hide():c.show();break;case "opacity":f.gradient&&!f.hasOwnProperty("stroke-opacity")&&
j(a,{"stroke-opacity":v>1?v/100:v});case "fill-opacity":if(f.gradient){if(l=d._g.doc.getElementById(a.getAttribute("fill").replace(/^url\(#|\)$/g,"")))l=l.getElementsByTagName("stop"),j(l[l.length-1],{"stop-opacity":v});break}default:o=="font-size"&&(v=e(v,10)+"px"),l=o.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),a.style[l]=v,c._.dirty=1,a.setAttribute(o,v)}}S(c,b);a.style.visibility=s},S=function(c,b){if(!(c.type!="text"||!b.hasOwnProperty("text")&&!b.hasOwnProperty("font")&&
!b.hasOwnProperty("font-size")&&!b.hasOwnProperty("x")&&!b.hasOwnProperty("y")&&!b.hasOwnProperty("line-height")&&!b.hasOwnProperty("vertical-align"))){var a=c.attrs,f=c.node,e=f.firstChild&&d._g.doc.defaultView.getComputedStyle(f.firstChild,"")?i(d._g.doc.defaultView.getComputedStyle(f.firstChild,"").getPropertyValue("font-size")):10,o=i(b["line-height"]||a["line-height"])||e*1.2,n=a.hasOwnProperty("vertical-align")?a["vertical-align"]:"middle";isNaN(o)&&(o=e*1.2);n=n==="top"?-0.5:n==="bottom"?0.5:
0;if(b.hasOwnProperty("text")&&(b.text!==a.text||c._textdirty)){for(a.text=b.text;f.firstChild;)f.removeChild(f.firstChild);for(var l=h(b.text).split(/\n|<br\s*?\/?>/ig),e=[],r,k=0,x=l.length;k<x;k++)r=j("tspan"),k?j(r,{dy:o,x:a.x}):j(r,{dy:o*l.length*n,x:a.x}),l[k]||(r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l[k]=" "),r.appendChild(d._g.doc.createTextNode(l[k])),f.appendChild(r),e[k]=r;c._textdirty=!1}else{e=f.getElementsByTagName("tspan");k=0;for(x=e.length;k<
x;k++)k?j(e[k],{dy:o,x:a.x}):j(e[0],{dy:o*e.length*n,x:a.x})}j(f,{x:a.x,y:a.y});c._.dirty=1;f=c._getBBox();(a=a.y-(f.y+f.height/2))&&d.is(a,"finite")&&e[0]&&j(e[0],{dy:a})}},L=function(c,b,a){a=a||b;this.node=this[0]=c;c.raphael=!0;c.raphaelid=this.id=d._oid++;this.matrix=d.matrix();this.realPath=null;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=b;this.ca=this.customAttributes=this.customAttributes||new b._CustomAttributes;this._={transform:[],
sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=a;!a.bottom&&(a.bottom=this);(this.prev=a.top)&&(a.top.next=this);a.top=this;this.next=null},x=d.el;L.prototype=x;x.constructor=L;d._engine.path=function(c,b,a){var f=j("path");a&&a.canvas&&a.canvas.appendChild(f)||b.canvas&&b.canvas.appendChild(f);b=new L(f,b,a);b.type="path";X(b,{fill:"none",stroke:"#000",path:c});return b};x.rotate=function(c,b,a){if(this.removed)return this;c=h(c).split(W);c.length-1&&(b=i(c[1]),a=i(c[2]));c=i(c[0]);a==null&&(b=a);
if(b==null||a==null)a=this.getBBox(1),b=a.x+a.width/2,a=a.y+a.height/2;this.transform(this._.transform.concat([["r",c,b,a]]));return this};x.scale=function(c,b,a,f){var d;if(this.removed)return this;c=h(c).split(W);c.length-1&&(b=i(c[1]),a=i(c[2]),f=i(c[3]));c=i(c[0]);b==null&&(b=c);f==null&&(a=f);if(a==null||f==null)d=this.getBBox(1);a=a==null?d.x+d.width/2:a;f=f==null?d.y+d.height/2:f;this.transform(this._.transform.concat([["s",c,b,a,f]]));return this};x.translate=function(c,b){if(this.removed)return this;
c=h(c).split(W);c.length-1&&(b=i(c[1]));c=i(c[0])||0;this.transform(this._.transform.concat([["t",c,+b||0]]));return this};x.transform=function(c){var b=this._;if(c==null)return b.transform;d._extractTransform(this,c);this.clip&&!b.clipispath&&j(this.clip,{transform:this.matrix.invert()});this.pattern&&n(this);this.node&&j(this.node,{transform:this.matrix});if(b.sx!=1||b.sy!=1)c=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":c});return this};x.hide=
function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};x.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};x.remove=function(){var c=this.node,b=this.paper,a=b.defs;if(!this.removed&&this.parent.canvas){b.__set__&&b.__set__.exclude(this);I.unbind("raphael.*.*."+this.id);for(this.gradient&&a&&a.removeChild(this.gradient);a=this.followers.pop();)a.el.remove();this.parent.canvas.removeChild(c.titleNode||c);d._tear(this,b);for(a in this)this[a]=
typeof this[a]==="function"?d._removedFactory(a):null;this.removed=!0}};x._getBBox=function(){var c=this.node,b={},a;c.style.display==="none"&&(this.show(),a=!0);try{b=c.getBBox()}catch(f){}finally{b=b||{}}a&&this.hide();return b};x.css=function(c,b){if(this.removed)return this;if(b==null&&d.is(c,"string")){for(var a=c.split(W),f={},e=0,o=a.length;e<o;e++)c=a[e],c in this.styles&&(f[c]=this.styles[c]);return o-1?f:f[a[0]]}if(b==null&&d.is(c,"array")){f={};e=0;for(o=c.length;e<o;e++)f[c[e]]=this.styles(c[e]);
return f}b!=null?(a={},a[c]=b):c!=null&&d.is(c,"object")&&(a=c);f={};for(o in a)e=o.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),d._availableAttrs.hasOwnProperty(e)||e==="color"?(e==="color"&&this.type==="text"&&(e="fill"),f[e]=a[o],f.dirty=!0):(I("raphael.css."+e+"."+this.id,this,a[o],e),this.node.style[e]=a[o],this.styles[e]=a[o]);e=0;for(o=this.followers.length;e<o;e++)this.followers[e].el.css(a);f.hasOwnProperty("dirty")&&(delete f.dirty,this.attr(f));return this};x.attr=function(c,b){if(this.removed)return this;
if(c==null){var a={},f;for(f in this.attrs)this.attrs.hasOwnProperty(f)&&(a[f]=this.attrs[f]);a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient;a.transform=this._.transform;a.visibility=this.node.style.display==="none"?"hidden":"visible";return a}if(b==null&&d.is(c,"string")){if(c=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(c=="transform")return this._.transform;if(c=="visibility")return this.node.style.display==="none"?"hidden":"visible";var a=
c.split(W),e={},o=0;for(f=a.length;o<f;o++)c=a[o],e[c]=c in this.attrs?this.attrs[c]:d.is(this.ca[c],"function")?this.ca[c].def:d._availableAttrs[c];return f-1?e:e[a[0]]}if(b==null&&d.is(c,"array")){e={};o=0;for(f=c.length;o<f;o++)e[c[o]]=this.attr(c[o]);return e}b!=null?(a={},a[c]=b):c!=null&&d.is(c,"object")&&(a=c);for(o in a)I("raphael.attr."+o+"."+this.id,this,a[o],o);var n={};for(o in this.ca)if(this.ca[o]&&a.hasOwnProperty(o)&&d.is(this.ca[o],"function")&&!this.ca["_invoked"+o]){this.ca["_invoked"+
o]=!0;f=this.ca[o].apply(this,[].concat(a[o]));delete this.ca["_invoked"+o];for(e in f)f.hasOwnProperty(e)&&(a[e]=f[e]);this.attrs[o]=a[o];f===!1&&(n[o]=a[o],delete a[o])}X(this,a);var l,o=0;for(f=this.followers.length;o<f;o++)l=this.followers[o],l.cb&&!l.cb.call(l.el,a,this)||l.el.attr(a);for(e in n)a[e]=n[e];return this};x.toFront=function(){if(this.removed)return this;var c=this.node,b=this.parent,a=this.followers,f;c.titleNode&&(c=c.titleNode);d._tofront(this,b)&&b.canvas.appendChild(c);c=0;for(b=
a.length;c<b;c++)(f=a[c]).stalk&&f.el[f.stalk](this);return this};x.toBack=function(){if(this.removed)return this;var c=this.node,b=this.parent,a=this.followers,f;c.titleNode&&(c=c.titleNode);d._toback(this,b)&&b.canvas.insertBefore(c,b.canvas.firstChild);c=0;for(b=a.length;c<b;c++)(f=a[c]).stalk&&f.el[f.stalk](this);return this};x.insertAfter=function(c){if(this.removed)return this;var b=this.node,a=c.node||c[c.length-1].node,f=c.parent.canvas,e=this.followers,o;b.titleNode&&(b=b.titleNode);a.titleNode&&
(a=a.titleNode);a.nextSibling?f.insertBefore(b,a.nextSibling):f.appendChild(b);d._insertafter(this,c,this.parent,c.parent);b=0;for(a=e.length;b<a;b++)(o=e[b]).stalk&&o.el[o.stalk](c);return this};x.insertBefore=function(c){if(this.removed)return this;var b=this.node,a=c.node||c[0].node,f=this.followers,e;b.titleNode&&(b=b.titleNode);a.titleNode&&(a=a.titleNode);c.parent.canvas.insertBefore(b,a);d._insertbefore(this,c,this.parent,c.parent);this.parent=c.parent;b=0;for(a=f.length;b<a;b++)(e=f[b]).stalk&&
e.el[e.stalk](c);return this};x.blur=function(c){if(+c!==0){var b=j("filter"),a=j("feGaussianBlur");this.attrs.blur=c;b.id=d.createUUID();j(a,{stdDeviation:+c||1.5});b.appendChild(a);this.paper.defs.appendChild(b);this._blur=b;j(this.node,{filter:"url('"+d._url+"#"+b.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};x.on=function(c,b){if(this.removed)return this;var a=b;d._supportsTouch&&(c=d._touchMap[c]||
c==="click"&&"touchstart"||c,a=function(a){a.preventDefault();b()});this.node["on"+c]=a;return this};d._engine.group=function(c,b,a){var f=j("g");a&&a.canvas&&a.canvas.appendChild(f)||c.canvas&&c.canvas.appendChild(f);c=new L(f,c,a);c.type="group";c.canvas=c.node;c.appendChild=d._engine.group.appendChild;c.removeChild=d._engine.group.removeChild;c.top=null;c.bottom=null;b&&f.setAttribute("class",["red",b,c.id].join("-"));return c};d._engine.group.appendChild=function(c){if(this.removed)return this;
var b=c.node,a=this.followers,f,e;if(c.parent===this)return c.toFront(),this;b.titleNode&&(b=b.titleNode);d._tear(c,c.parent);this.canvas.appendChild(b);c.parent=this;!this.bottom&&(this.bottom=c);c.prev=this.top;c.next=null;this.top&&(this.top.next=c);this.top=c;b=0;for(e=a.length;b<e;b++)(f=a[b]).stalk&&f.el[f.stalk](c);return this};d._engine.group.removeChild=function(c){if(this.removed||c.parent!==this)return this;var b=c.node,a=this.paper;b.titleNode&&(b=b.titleNode);d._tear(c,this);a.canvas.appendChild(b);
this.parent=a;!a.bottom&&(a.bottom=this);(this.prev=a.top)&&(a.top.next=this);a.top=this;this.next=null;return this};d._engine.circle=function(c,b,a,f,d){var e=j("circle");d&&d.canvas&&d.canvas.appendChild(e)||c.canvas&&c.canvas.appendChild(e);c=new L(e,c,d);c.attrs={cx:b,cy:a,r:f,fill:"none",stroke:"#000"};c.type="circle";j(e,c.attrs);return c};d._engine.rect=function(c,b,a,f,d,e,n){var l=j("rect");n&&n.canvas&&n.canvas.appendChild(l)||c.canvas&&c.canvas.appendChild(l);c=new L(l,c,n);c.attrs={x:b,
y:a,width:f,height:d,r:e||0,rx:e||0,ry:e||0,fill:"none",stroke:"#000"};c.type="rect";j(l,c.attrs);return c};d._engine.ellipse=function(c,b,a,f,d,e){var n=j("ellipse");e&&e.canvas&&e.canvas.appendChild(n)||c.canvas&&c.canvas.appendChild(n);c=new L(n,c,e);c.attrs={cx:b,cy:a,rx:f,ry:d,fill:"none",stroke:"#000"};c.type="ellipse";j(n,c.attrs);return c};d._engine.image=function(c,b,a,f,d,e,n){var l=j("image");j(l,{x:a,y:f,width:d,height:e,preserveAspectRatio:"none"});l.setAttributeNS("http://www.w3.org/1999/xlink",
"href",b);n&&n.canvas&&n.canvas.appendChild(l)||c.canvas&&c.canvas.appendChild(l);c=new L(l,c,n);c.attrs={x:a,y:f,width:d,height:e,src:b};c.type="image";return c};d._engine.text=function(c,b,a,f,d){var e=j("text");d&&d.canvas&&d.canvas.appendChild(e)||c.canvas&&c.canvas.appendChild(e);c=new L(e,c,d);c.attrs={x:b,y:a,"text-anchor":"middle","vertical-align":"middle",text:f,stroke:"none",fill:"#000"};c.type="text";c._textdirty=!0;X(c,c.attrs);return c};d._engine.setSize=function(c,b){this.width=c||this.width;
this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};d._engine.create=function(){var c=d._getContainer.apply(0,arguments),b=c&&c.container,a=c.x,f=c.y,e=c.width,c=c.height;if(!b)throw Error("SVG container not found.");var o=j("svg"),n,a=a||0,f=f||0,e=e||512,c=c||342;j(o,{height:c,version:1.1,width:e,xmlns:"http://www.w3.org/2000/svg"});b==1?(o.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:absolute;left:"+
a+"px;top:"+f+"px",d._g.doc.body.appendChild(o),n=1):(o.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",b.firstChild?b.insertBefore(o,b.firstChild):b.appendChild(o));b=new d._Paper;b.width=e;b.height=c;b.canvas=o;b.clear();b._left=b._top=0;n&&(b.renderfix=function(){});b.renderfix();return b};d._engine.setViewBox=
function(c,b,a,f,e){I("raphael.setViewBox",this,this._viewBox,[c,b,a,f,e]);var d=q(a/this.width,f/this.height),n=this.top,l;c==null?(this._vbSize&&(d=1),delete this._vbSize,l="0 0 "+this.width+" "+this.height):(this._vbSize=d,l=c+" "+b+" "+a+" "+f);for(j(this.canvas,{viewBox:l,preserveAspectRatio:e?"meet":"xMinYMin"});d&&n;)l="stroke-width"in n.attrs?n.attrs["stroke-width"]:1,n.attr({"stroke-width":l}),n._.dirty=1,n._.dirtyT=1,n=n.prev;this._viewBox=[c,b,a,f,!!e];return this};d.prototype.renderfix=
function(){var c=this.canvas,b=c.style,a;try{a=c.getScreenCTM()||c.createSVGMatrix()}catch(f){a=c.createSVGMatrix()}c=-a.e%1;a=-a.f%1;if(c||a){if(c)this._left=(this._left+c)%1,b.left=this._left+"px";if(a)this._top=(this._top+a)%1,b.top=this._top+"px"}};d.prototype.clear=function(){d.eve("raphael.clear",this);for(var c=this.canvas;c.firstChild;)c.removeChild(c.firstChild);this.bottom=this.top=null;(this.desc=j("desc")).appendChild(d._g.doc.createTextNode(d.is(d.desc,"string")&&d.desc||"Created with Red Rapha\u00ebl "+
d.version));c.appendChild(this.desc);c.appendChild(this.defs=j("defs"))};d.prototype.remove=function(){I("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var c in this)this[c]=typeof this[c]=="function"?d._removedFactory(c):null};var z=d.st,A;for(A in x)x.hasOwnProperty(A)&&!z.hasOwnProperty(A)&&(z[A]=function(c){return function(){var b=arguments;return this.forEach(function(a){a[c].apply(a,b)})}}(A))}(window.Raphael);window.Raphael.vml&&function(d){var h=
String,i=parseFloat,e=Math,k=e.round,q=e.max,B=e.min,K=e.abs,W=/[, ]+/,U=d.eve,I={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},V=/([clmz]),?([^clmz]*)/gi,$=/ progid:\S+Blur\([^\)]+\)/g,ga=/-?[^,\s-]+/g,j={path:1,rect:1,image:1},ia={circle:1,ellipse:1},n=function(b){var a=/[ahqstv]/ig,c=d._pathToAbsolute;h(b).match(a)&&(c=d._path2curve);a=/[clmz]/g;if(c==d._pathToAbsolute&&!h(b).match(a))return(b=h(b).replace(V,function(a,b,c){var f=[],e=b.toLowerCase()=="m",d=I[b];c.replace(ga,function(a){e&&
f.length==2&&(d+=f+I[b=="m"?"l":"L"],f=[]);f.push(k(a*21600))});return d+f}))||"m0,0";for(var a=c(b),e,b=[],o=0,n=a.length;o<n;o++){c=a[o];e=a[o][0].toLowerCase();e=="z"&&(e="x");for(var l=1,r=c.length;l<r;l++)e+=k(c[l]*21600)+(l!=r-1?",":"");b.push(e)}return b.length?b.join(" "):"m0,0"},r=function(b,a,c){var e=d.matrix();e.rotate(-b,0.5,0.5);return{dx:e.x(a,c),dy:e.y(a,c)}},l=function(b,a,c,e,d,n){var l=b._,h=b.matrix,i=l.fillpos,b=b.node,k=b.style,j=1,x="",P=21600/a,w=21600/c;k.visibility="hidden";
if(a&&c){b.coordsize=K(P)+" "+K(w);k.rotation=n*(a*c<0?-1:1);if(n)d=r(n,e,d),e=d.dx,d=d.dy;a<0&&(x+="x");c<0&&(x+=" y")&&(j=-1);k.flip=x;b.coordorigin=e*-P+" "+d*-w;if(i||l.fillsize){e=(e=b.getElementsByTagName("fill"))&&e[0];b.removeChild(e);if(i)d=r(n,h.x(i[0],i[1]),h.y(i[0],i[1])),e.position=d.dx*j+" "+d.dy*j;if(l.fillsize)e.size=l.fillsize[0]*K(a)+" "+l.fillsize[1]*K(c);b.appendChild(e)}k.visibility="visible"}};d._url="";d.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\u00ebl "+
this.version};var P=function(b,a,c){for(var a=h(a).toLowerCase().split("-"),c=c?"end":"start",e=a.length,d="classic",n="medium",l="medium";e--;)switch(a[e]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":d=a[e];break;case "wide":case "narrow":l=a[e];break;case "long":case "short":n=a[e]}b=b.node.getElementsByTagName("stroke")[0];b[c+"arrow"]=d;b[c+"arrowlength"]=n;b[c+"arrowwidth"]=l},X=function(b,a){b.attrs=b.attrs||{};var c=b.node,e=b.attrs,o=c.style,r=j[b.type]&&
(a.x!=e.x||a.y!=e.y||a.width!=e.width||a.height!=e.height||a.cx!=e.cx||a.cy!=e.cy||a.rx!=e.rx||a.ry!=e.ry||a.r!=e.r),x=ia[b.type]&&(e.cx!=a.cx||e.cy!=a.cy||e.r!=a.r||e.rx!=a.rx||e.ry!=a.ry),A;for(A in a)a.hasOwnProperty(A)&&(e[A]=a[A]);if(r)e.path=d._getPath[b.type](b),b._.dirty=1;a.href&&(c.href=a.href);a.title&&(c.title=a.title);a.target&&(c.target=a.target);a.cursor&&(o.cursor=a.cursor);"blur"in a&&b.blur(a.blur);if(a.path&&b.type=="path"||r)if(c.path=n(~h(e.path).toLowerCase().indexOf("r")?d._pathToAbsolute(e.path):
e.path),b.type=="image")b._.fillpos=[e.x,e.y],b._.fillsize=[e.width,e.height],l(b,1,1,0,0,0);"transform"in a&&b.transform(a.transform);if("rotation"in a)o=a.rotation,d.is(o,"array")?b.rotate.apply(b,o):b.rotate(o);if("shape-rendering"in a)c.style.antialias=a["shape-rendering"]!=="crisp";"visibility"in a&&(a.visibility==="hidden"?b.hide():b.show());if(x)o=+e.cx,x=+e.cy,r=+e.rx||+e.r||0,A=+e.ry||+e.r||0,c.path=d.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",k((o-r)*21600),k((x-A)*21600),k((o+r)*21600),
k((x+A)*21600),k(o*21600));if("clip-rect"in a){o=h(a["clip-rect"]).split(W);if(o.length==4)if(o[0]=+o[0],o[1]=+o[1],o[2]=+o[2]+o[0],o[3]=+o[3]+o[1],x=b.type==="group"?c:c.clipRect||d._g.doc.createElement("div"),r=x.style,r.clip=d.format("rect({1}px {2}px {3}px {0}px)",o),r.position="absolute",b.type==="group")b.clip=o,r.width="10800px",r.height="10800px";else if(!c.clipRect)r.top=0,r.left=0,r.width=b.paper.width+"px",r.height=b.paper.height+"px",c.parentNode.insertBefore(x,c),x.appendChild(c),c.clipRect=
x;if(!a["clip-rect"])if(b.type==="group"&&b.clip)c.style.clip="rect(auto auto auto auto)",delete b.clip;else if(c.clipRect)c.clipRect.style.clip="rect(auto auto auto auto)"}if(b.textpath)o=b.textpath.style,a.font&&(o.font=a.font),a["font-family"]&&(o.fontFamily='"'+a["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),a["font-size"]&&(o.fontSize=a["font-size"]),a["font-weight"]&&(o.fontWeight=a["font-weight"]),a["font-style"]&&(o.fontStyle=a["font-style"]);"arrow-start"in a&&P(b,a["arrow-start"]);
"arrow-end"in a&&P(b,a["arrow-end"],1);if(a.opacity!=null||a["stroke-width"]!=null||a.fill!=null||a.src!=null||a.stroke!=null||a["stroke-width"]!=null||a["stroke-opacity"]!=null||a["fill-opacity"]!=null||a["stroke-dasharray"]!=null||a["stroke-miterlimit"]!=null||a["stroke-linejoin"]!=null||a["stroke-linecap"]!=null){o=c.getElementsByTagName("fill");x=-1;o=o&&o[0];!o&&(o=z("fill"));if(b.type=="image"&&a.src)o.src=a.src;a.fill&&(o.on=!0);if(o.on==null||a.fill=="none"||a.fill===null)o.on=!1;if(o.on&&
a.fill)if(r=h(a.fill).match(d._ISURL))o.parentNode==c&&c.removeChild(o),o.rotate=!0,o.src=r[1],o.type="tile",A=b.getBBox(1),o.position=A.x+" "+A.y,b._.fillpos=[A.x,A.y],d._preload(r[1],function(){b._.fillsize=[this.offsetWidth,this.offsetHeight]});else if(r=d.getRGB(a.fill),o.color=r.hex,o.src="",o.type="solid",r.error&&(b.type in{circle:1,ellipse:1}||h(a.fill).charAt()!="r")&&S(b,a.fill,o))e.fill="none",e.gradient=a.fill,o.rotate=!1;else if("opacity"in r&&!("fill-opacity"in a))x=r.opacity;if(x!==
-1||"fill-opacity"in a||"opacity"in a)if(r=((+e["fill-opacity"]+1||2)-1)*((+e.opacity+1||2)-1)*((+x+1||2)-1),r=B(q(r,0),1),o.opacity=r,o.src)o.color="none";c.appendChild(o);o=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0];x=!1;!o&&(x=o=z("stroke"));if(a.stroke&&a.stroke!="none"||a["stroke-width"]||a["stroke-opacity"]!=null||a["stroke-dasharray"]||a["stroke-miterlimit"]||a["stroke-linejoin"]||a["stroke-linecap"])o.on=!0;(a.stroke=="none"||a.stroke===null||o.on==null||a.stroke==
0||a["stroke-width"]==0)&&(o.on=!1);r=d.getRGB("stroke"in a?a.stroke:e.stroke);o.on&&a.stroke&&(o.color=r.hex);r=((+e["stroke-opacity"]+1||2)-1)*((+e.opacity+1||2)-1)*((+r.opacity+1||2)-1);A=(i(a["stroke-width"])||1)*0.75;r=B(q(r,0),1);a["stroke-width"]==null&&(A=e["stroke-width"]);a["stroke-width"]&&(o.weight=A);A&&A<1&&(r*=A)&&(o.weight=1);o.opacity=r;a["stroke-linejoin"]&&(o.joinstyle=a["stroke-linejoin"])||x&&(x.joinstyle="miter");o.miterlimit=a["stroke-miterlimit"]||8;a["stroke-linecap"]&&(o.endcap=
a["stroke-linecap"]=="butt"?"flat":a["stroke-linecap"]=="square"?"square":"round");if(a["stroke-dasharray"])r={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},o.dashstyle=r.hasOwnProperty(a["stroke-dasharray"])?r[a["stroke-dasharray"]]:a["stroke-dasharray"].join&&a["stroke-dasharray"].join(" ")||"";x&&c.appendChild(o)}if(b.type=="text"){b.paper.canvas.style.display="";c=b.paper.span;
x=e.font&&e.font.match(/\d+(?:\.\d*)?(?=px)/);r=e["line-height"]&&(e["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);o=c.style;e.font&&(o.font=e.font);e["font-family"]&&(o.fontFamily=e["font-family"]);e["font-weight"]&&(o.fontWeight=e["font-weight"]);e["font-style"]&&(o.fontStyle=e["font-style"]);x=i(e["font-size"]||x&&x[0])||10;o.fontSize=x*100+"px";r=i(e["line-height"]||r&&r[0])||12;e["line-height"]&&(o.lineHeight=r*100+"px");b.textpath.string&&(c.innerHTML=h(b.textpath.string).replace(/</g,"&#60;").replace(/&/g,
"&#38;").replace(/\n/g,"<br>"));c=c.getBoundingClientRect();b.W=e.w=(c.right-c.left)/100;b.H=e.h=(c.bottom-c.top)/100;b.X=e.x;b.Y=e.y;switch(e["vertical-align"]){case "top":b.bby=b.H/2;break;case "bottom":b.bby=-b.H/2;break;default:b.bby=0}("x"in a||"y"in a||b.bby!==void 0)&&(b.path.v=d.format("m{0},{1}l{2},{1}",k(e.x*21600),k((e.y+(b.bby||0))*21600),k(e.x*21600)+1));c=["x","y","text","font","font-family","font-weight","font-style","font-size","line-height"];o=0;for(x=c.length;o<x;o++)if(c[o]in a){b._.dirty=
1;break}switch(e["text-anchor"]){case "start":b.textpath.style["v-text-align"]="left";b.bbx=b.W/2;break;case "end":b.textpath.style["v-text-align"]="right";b.bbx=-b.W/2;break;default:b.textpath.style["v-text-align"]="center",b.bbx=0}b.textpath.style["v-text-kern"]=!0}},S=function(b,a,c){b.attrs=b.attrs||{};var n=Math.pow,o="linear",l=".5 .5";b.attrs.gradient=a;a=h(a).replace(d._radial_gradient,function(a,b){o="radial";var b=b&&b.split(",")||[],c=b[3],f=b[4];c&&f&&(c=i(c),f=i(f),n(c-0.5,2)+n(f-0.5,
2)>0.25&&(f=e.sqrt(0.25-n(c-0.5,2))*((f>0.5)*2-1)+0.5),l=c+" "+f);return""});a=a.split(/\s*\-\s*/);if(o=="linear"){var r=a.shift(),r=-i(r);if(isNaN(r))return null}a=d._parseDots(a);if(!a)return null;b=b.shape||b.node;if(a.length){b.removeChild(c);c.on=!0;c.method="none";c.color=a[0].color;c.color2=a[a.length-1].color;for(var k=[],j=1,x=a[0].opacity===void 0?1:a[0].opacity,P=0,w=a.length;P<w;P++)if(a[P].offset&&k.push(a[P].offset+" "+a[P].color),a[P].opacity!==void 0)j=a[P].opacity;c.colors=k.length?
k.join():"0% "+c.color;c.opacity=j;c["o:opacity2"]=x;o=="radial"?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=l,c.angle=0):(c.type="gradient",c.angle=(270-r)%360);b.appendChild(c)}return 1},L=function(b,a,c){c=c||a;this.node=this[0]=b;b.raphael=!0;b.raphaelid=this.id=d._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=a;this.ca=this.customAttributes=this.customAttributes||new a._CustomAttributes;this.matrix=
d.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=c;!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null},x=d.el;L.prototype=x;x.constructor=L;x.transform=function(b){if(b==null)return this._.transform;var a=this.paper._viewBoxShift,c=a?"s"+[a.scale,a.scale]+"-1-1t"+[a.dx,a.dy]:"",e;a&&(e=b=h(b).replace(/\.{3}|\u2026/g,this._.transform||""));d._extractTransform(this,c+b);var a=this.matrix.clone(),n=this.skew,b=this.node,c=
~h(this.attrs.fill).indexOf("-"),r=!h(this.attrs.fill).indexOf("url(");a.translate(-0.5,-0.5);r||c||this.type=="image"?(n.matrix="1 0 0 1",n.offset="0 0",n=a.split(),c&&n.noRotation||!n.isSimple?(b.style.filter=a.toFilter(),c=this.getBBox(),n=this.getBBox(1),a=c.x-n.x,c=c.y-n.y,b.coordorigin=a*-21600+" "+c*-21600,l(this,1,1,a,c,0)):(b.style.filter="",l(this,n.scalex,n.scaley,n.dx,n.dy,n.rotate))):(b.style.filter="",n.matrix=h(a),n.offset=a.offset());e&&(this._.transform=e);return this};x.rotate=function(b,
a,c){if(this.removed)return this;if(b!=null){b=h(b).split(W);b.length-1&&(a=i(b[1]),c=i(b[2]));b=i(b[0]);c==null&&(a=c);if(a==null||c==null)c=this.getBBox(1),a=c.x+c.width/2,c=c.y+c.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,a,c]]));return this}};x.translate=function(b,a){if(this.removed)return this;b=h(b).split(W);b.length-1&&(a=i(b[1]));b=i(b[0])||0;a=+a||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=a);this.transform(this._.transform.concat([["t",b,a]]));return this};
x.scale=function(b,a,c,e){if(this.removed)return this;b=h(b).split(W);b.length-1&&(a=i(b[1]),c=i(b[2]),e=i(b[3]),isNaN(c)&&(c=null),isNaN(e)&&(e=null));b=i(b[0]);a==null&&(a=b);e==null&&(c=e);if(c==null||e==null)var d=this.getBBox(1);c=c==null?d.x+d.width/2:c;e=e==null?d.y+d.height/2:e;this.transform(this._.transform.concat([["s",b,a,c,e]]));this._.dirtyT=1;return this};x.hide=function(){!this.removed&&(this.node.style.display="none");return this};x.show=function(){!this.removed&&(this.node.style.display=
"");return this};x._getBBox=function(){if(this.removed)return{};return{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};x.remove=function(){if(!this.removed&&this.parent.canvas){var b,a=this.node||this.node[0];this.paper.__set__&&this.paper.__set__.exclude(this);for(d.eve.unbind("raphael.*.*."+this.id);b=this.followers.pop();)b.el.remove();this.shape&&this.shape.parentNode.removeChild(this.shape);this.clipRect&&(a=this.clipRect);a.parentNode.removeChild(a);
d._tear(this,this.paper);for(b in this)this[b]=typeof this[b]=="function"?d._removedFactory(b):null;this.removed=!0}};x.css=function(b,a){if(this.removed)return this;if(a==null&&d.is(b,"string")){for(var c=b.split(W),e={},n=0,l=c.length;n<l;n++)b=c[n],b in this.styles&&(e[b]=this.styles[b]);return l-1?e:e[c[0]]}if(a==null&&d.is(b,"array")){e={};n=0;for(l=b.length;n<l;n++)e[b[n]]=this.styles(b[n]);return e}a!=null?(c={},c[b]=a):b!=null&&d.is(b,"object")&&(c=b);e={};for(l in c)n=l.replace(/\B([A-Z]{1})/g,
"-$1").toLowerCase(),n==="color"&&this.type==="text"&&(n="fill"),d._availableAttrs.hasOwnProperty(n)?(e[n]=c[l],e.dirty=!0):(U("raphael.css."+n+"."+this.id,this,c[l],n),c[l]!=void 0&&(this.node.style[n]=c[l]),this.styles[n]=c[l]);n=0;for(l=this.followers.length;n<l;n++)this.followers[n].el.css(c);e.hasOwnProperty("dirty")&&(delete e.dirty,this.attr(e));return this};x.attr=function(b,a){if(this.removed)return this;if(b==null){var c={},e;for(e in this.attrs)this.attrs.hasOwnProperty(e)&&(c[e]=this.attrs[e]);
c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient;c.transform=this._.transform;c.visibility=this.node.style.display==="none"?"hidden":"visible";return c}if(a==null&&d.is(b,"string")){if(b=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(b=="visibility")return this.node.style.display==="none"?"hidden":"visible";var c=b.split(W),n={},l=0;for(e=c.length;l<e;l++)b=c[l],n[b]=b in this.attrs?this.attrs[b]:d.is(this.ca[b],"function")?this.ca[b].def:d._availableAttrs[b];
return e-1?n:n[c[0]]}if(this.attrs&&a==null&&d.is(b,"array")){n={};l=0;for(e=b.length;l<e;l++)n[b[l]]=this.attr(b[l]);return n}a!=null&&(c={},c[b]=a);a==null&&d.is(b,"object")&&(c=b);for(l in c)U("raphael.attr."+l+"."+this.id,this,c[l],l);if(c){var r={};for(l in this.ca)if(this.ca[l]&&c.hasOwnProperty(l)&&d.is(this.ca[l],"function")&&!this.ca["_invoked"+l]){this.ca["_invoked"+l]=!0;e=this.ca[l].apply(this,[].concat(c[l]));delete this.ca["_invoked"+l];for(n in e)e.hasOwnProperty(n)&&(c[n]=e[n]);this.attrs[l]=
c[l];e===!1&&(r[l]=c[l],delete c[l])}if("text"in c&&this.type=="text")this.textpath.string=c.text.replace(/<br\s*?\/?>/ig,"\n");X(this,c);var h,l=0;for(e=this.followers.length;l<e;l++)h=this.followers[l],h.cb&&!h.cb.call(h.el,c,this)||h.el.attr(c);for(n in r)c[n]=r[n]}return this};x.toFront=function(){if(this.removed)return this;var b=this.node,a=this.followers,c,e;if(b.clipRect)b=b.clipRect;d._tofront(this,this.parent)&&this.parent.canvas.appendChild(b);b=0;for(e=a.length;b<e;b++)(c=a[b]).stalk&&
c.el[c.stalk](this);return this};x.toBack=function(){if(this.removed)return this;var b=this.followers,a,c,e;d._toback(this,this.parent)&&this.parent.canvas.insertBefore(this.node,this.parent.canvas.firstChild);c=0;for(e=b.length;c<e;c++)(a=b[c]).stalk&&a.el[a.stalk](this);return this};x.insertAfter=function(b){if(this.removed)return this;var a=this.node,c=b.node||b[b.length-1].node,e=b.parent.canvas,n=this.followers,l;if(a.clipRect)a=a.clipRect;if(c.clipRect)c=c.clipRect;c.nextSibling?e.insertBefore(a,
c.nextSibling):e.appendChild(a);d._insertafter(this,b,this.parent,b.parent);this.transform(this._.transform);a=0;for(c=n.length;a<c;a++)(l=n[a]).stalk&&l.el[l.stalk](b);return this};x.insertBefore=function(b){if(this.removed)return this;var a=this.node,c=b.node||b[0].node,e=this.followers,n;if(a.clipRect)a=a.clipRect;if(c.clipRect)c=c.clipRect;b.parent.canvas.insertBefore(a,c);d._insertbefore(this,b,this.parent,b.parent);this.parent=b.parent;this.transform(this._.transform);a=0;for(c=e.length;a<c;a++)(n=
e[a]).stalk&&n.el[n.stalk](b);return this};x.blur=function(b){var a=this.node.runtimeStyle,c=a.filter,c=c.replace($,"");+b!==0?(this.attrs.blur=b,a.filter=c+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+b||1.5)+")",a.margin=d.format("-{0}px 0 0 -{0}px",k(+b||1.5))):(a.filter=c,a.margin=0,delete this.attrs.blur);return this};x.on=function(b,a){if(this.removed)return this;this.node["on"+b]=function(){var b=d._g.win.event;b.target=b.srcElement;a(b)};return this};d._engine.group=function(b,
a,c){var e=d._g.doc.createElement("div"),n=new L(e,b,c);e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";a&&(e.className=["red",a,n.id].join("-"));(c||b).canvas.appendChild(e);n.type="group";n.canvas=n.node;n.appendChild=d._engine.group.appendChild;n.removeChild=d._engine.group.removeChild;n.transform=d._engine.group.transform;n.top=null;n.bottom=null;return n};d._engine.group.appendChild=function(b){if(this.removed)return this;var a=b.node,c=this.followers,e,n;if(a.clipRect)a=
a.clipRect;if(b.parent===this)return b.toFront(),this;d._tear(b,b.parent);this.canvas.appendChild(a);b.parent=this;!this.bottom&&(this.bottom=b);b.prev=this.top;b.next=null;this.top&&(this.top.next=b);this.top=b;a=0;for(n=c.length;a<n;a++)(e=c[a]).stalk&&e.el[e.stalk](b);return this};d._engine.group.removeChild=function(b){if(this.removed||b.parent!==this)return this;var a=b.node,c=this.paper;a.clipRect&&(a=a.clipRect);c.canvas.appendChild(a);d._tear(b,this);this.parent=c;!c.bottom&&(c.bottom=this);
(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null;return this};d._engine.group.transform=function(b){if(b==null)return this._.transform;var a=this.node.style,c=this.paper._viewBoxShift,e=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:"";c&&(b=h(b).replace(/\.{3}|\u2026/g,this._.transform||""));d._extractTransform(this,e+b);b=this.matrix.clone();c=b.offset();a.left=c[0]+"px";a.top=c[1]+"px";a.zoom=(this._.tzoom=b.get(0))+"";if(this.clip)c=b.clone().invert().offset(),c=[i(c[0]),i(c[1])],a.clip=
d.format("rect({1}px {2}px {3}px {0}px)",[this.clip[0]+c[0],this.clip[1]+c[1],this.clip[2]+c[0],this.clip[3]+c[1]]);return this};d._engine.path=function(b,a,c){var e=z("shape");e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";e.coordsize="21600 21600";e.coordorigin=a.coordorigin;var d=new L(e,a,c),n={fill:"none",stroke:"#000"};b&&(n.path=b);d.type="path";d.path=[];d.Path="";X(d,n);(c||a).canvas.appendChild(e);b=z("skew");b.on=!0;e.appendChild(b);d.skew=b;return d};d._engine.rect=
function(b,a,c,e,n,l,r){var h=d._rectPath(a,c,e,n,l),b=b.path(h,r),r=b.attrs;b.X=r.x=a;b.Y=r.y=c;b.W=r.width=e;b.H=r.height=n;r.r=l;r.path=h;b.type="rect";return b};d._engine.ellipse=function(b,a,c,e,d,n){b=b.path(void 0,n);b.X=a-e;b.Y=c-d;b.W=e*2;b.H=d*2;b.type="ellipse";X(b,{cx:a,cy:c,rx:e,ry:d});return b};d._engine.circle=function(b,a,c,e,d){b=b.path(void 0,d);b.X=a-e;b.Y=c-e;b.W=b.H=e*2;b.type="circle";X(b,{cx:a,cy:c,r:e});return b};d._engine.image=function(b,a,c,e,n,r,h){var i=d._rectPath(c,
e,n,r),b=b.path(i,h).attr({stroke:"none"}),h=b.attrs,k=b.node,j=k.getElementsByTagName("fill")[0];h.src=a;b.X=h.x=c;b.Y=h.y=e;b.W=h.width=n;b.H=h.height=r;h.path=i;b.type="image";j.parentNode==k&&k.removeChild(j);j.rotate=!0;j.src=a;j.type="tile";b._.fillpos=[c,e];b._.fillsize=[n,r];k.appendChild(j);l(b,1,1,0,0,0);return b};d._engine.text=function(b,a,c,e,n){var l=z("shape"),r=z("path"),i=z("textpath"),a=a||0,c=c||0;r.v=d.format("m{0},{1}l{2},{1}",k(a*21600),k(c*21600),k(a*21600)+1);r.textpathok=
!0;i.string=h(e).replace(/<br\s*?\/?>/ig,"\n");i.on=!0;l.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";l.coordsize="21600 21600";l.coordorigin="0 0";var j=new L(l,b,n),x={fill:"#000",stroke:"none",text:e};j.shape=l;j.path=r;j.textpath=i;j.type="text";j.attrs.text=h(e||"");j.attrs.x=a;j.attrs.y=c;j.attrs.w=1;j.attrs.h=1;X(j,x);l.appendChild(i);l.appendChild(r);(n||b).canvas.appendChild(l);b=z("skew");b.on=!0;l.appendChild(b);j.skew=b;return j};d._engine.setSize=function(b,a){var c=
this.canvas.style;this.width=b;this.height=a;b==+b&&(b+="px");a==+a&&(a+="px");c.width=b;c.height=a;c.clip="rect(0 "+b+" "+a+" 0)";this._viewBox&&d._engine.setViewBox.apply(this,this._viewBox);return this};d._engine.setViewBox=function(b,a,c,e,n){d.eve("raphael.setViewBox",this,this._viewBox,[b,a,c,e,n]);var l=this.width,r=this.height,h=1/q(c/l,e/r),i,k;n&&(i=r/e,k=l/c,c*i<l&&(b-=(l-c*i)/2/i),e*k<r&&(a-=(r-e*k)/2/k));this._viewBox=[b,a,c,e,!!n];this._viewBoxShift={dx:-b,dy:-a,scale:h};this.forEach(function(a){a.transform("...")});
return this};var z;d._engine.initWin=function(b){var a=b.document;a.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!a.namespaces.rvml&&a.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),z=d.createNode=function(b,c){var e=a.createElement("<rvml:"+b+' class="rvml">'),d;for(d in c)e[d]=h(c[d]);return e}}catch(c){z=d.createNode=function(b,c){var e=a.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),d;for(d in c)e[d]=h(c[d]);return e}}};d._engine.initWin(d._g.win);
d._engine.create=function(){var b=d._getContainer.apply(0,arguments),a=b.container,c=b.height,e=b.width,n=b.x,b=b.y;if(!a)throw Error("VML container not found.");var l=new d._Paper,r=l.canvas=d._g.doc.createElement("div"),h=r.style,n=n||0,b=b||0,e=e||512,c=c||342;l.width=e;l.height=c;e==+e&&(e+="px");c==+c&&(c+="px");l.coordsize="21600000 21600000";l.coordorigin="0 0";l.span=d._g.doc.createElement("span");l.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";
r.appendChild(l.span);h.cssText=d.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",e,c);a==1?(d._g.doc.body.appendChild(r),h.left=n+"px",h.top=b+"px",h.position="absolute"):a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r);l.renderfix=function(){};return l};d.prototype.clear=function(){d.eve("raphael.clear",this);this.canvas.innerHTML="";this.span=d._g.doc.createElement("span");this.span.style.cssText=
"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};d.prototype.remove=function(){d.eve("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var b in this)this[b]=typeof this[b]=="function"?d._removedFactory(b):null;return!0};var A=d.st,c;for(c in x)x.hasOwnProperty(c)&&!A.hasOwnProperty(c)&&(A[c]=function(b){return function(){var a=arguments;return this.forEach(function(c){c[b].apply(c,
a)})}}(c))}(window.Raphael);k.Raphael=B;k.Raphael.desc="framework "+this.core.version.join(".");if(q&&q!==B)window.Raphael=q;else if(window.Raphael===B)window.Raphael=B}]);
FusionCharts(["private","modules.renderer.js-raphaelshadow",function(){var k=this.hcLib,i=window,q=i.navigator.userAgent,B=i.parseFloat,d=i.parseInt;/AppleWebKit/.test(q);/Safari/.test(q)&&/Version\/[1-4]\./.test(q);/Chrome/.test(q);/msie/i.test(q);var h=k.Raphael,R;if(h.svg){var e={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","shape-rendering":"shape-rendering",transform:"transform"};R=function(d,
h){var i=this.__shadowscale,k={},q,B;for(B in d)switch(e[B]&&(k[B]=d[B],delete d[B]),B){case "transform":q=h.matrix.clone();q.translate(this.__shadowx,this.__shadowy);this.transform(q.toTransformString());break;case "stroke-width":d[B]=((k[B]||1)+6-2*this.__shadowlevel)*i}this.attr(d);for(B in k)d[B]=k[B]};h.ca["drop-shadow"]=function(e,i,k,q,B,U){var k=this._.shadows||(this._.shadows=[]),I,V,$,ga,j;if(!this.__shadowblocked)if(e==="none")for(;V=k.pop();)V.remove();else{q=h.color(q);q.error&&(q=h.color("rgba(0,0,0,1)"));
B instanceof Array?(I=B[0],B=B[1]):I=B;I=1/h.pick(I,1);B=1/h.pick(B,1);e=h.pick(e,1)*I;i=h.pick(i,1)*I;I=h.pick(q.opacity,1)*0.05;$=d(this.attr("stroke-width")||1,10)+6;ga=this.matrix.clone();ga.translate(e,i);for(j=1;j<=3;j++)V=this.clone().follow(this,R,!U&&"before").attr({stroke:q.hex,"stroke-opacity":I*j,"stroke-width":($-2*j)*B,transform:ga.toTransformString(),"stroke-linecap":"round","shape-rendering":"default",fill:"none"}),V.__shadowlevel=j,V.__shadowscale=B,V.__shadowx=e,V.__shadowy=i,U&&
U.appendChild(V),k.push(V)}return!1};h.el.shadow=function(e,d,i,k){i&&i.constructor===h.el.constructor&&(k=i,i=void 0);if(typeof e==="object")d&&d.constructor===h.el.constructor&&(k=d),d=e.opacity,i=e.scalefactor,e=e.apply===void 0?!!d:e.apply;d===void 0&&(d=1);return this.attr("drop-shadow",e?[1,1,3,"rgba(64,64,64,"+d+")",i,k]:"none")}}else if(h.vml)h.ca["drop-shadow"]=function(e,d,i,k,q,U){var I=this._.shadow,V,$;if(this.isShadow)return!1;if(e==="none")I&&(this._.shadow=I.remove());else{if(!I)I=
this._.shadow=this.clone(),U&&U.appendChild(I.follow(this))||I.follow(this,void 0,"before"),I.attr({fill:"none","fill-opacity":1,"stroke-opacity":1}).isShadow=!0,I.attr("stroke-width")<=0&&I.attr("stroke-width",1);U=I.node.runtimeStyle;V=U.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,"");k=h.color(k);k.error&&(k=h.color("rgba(0,0,0,1)"));$=h.pick(k.opacity,1)/5;q=1/h.pick(q,1);e=h.pick(e,1)*q;d=h.pick(d,1)*q;I.translate(e,d);U.filter=V+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+B(i*0.4)+
" makeShadow=True Color="+k.hex+" shadowOpacity='"+$+"');"}return!1},h.el.shadow=function(e,d,i,k){i&&i.constructor===h.el.constructor&&(k=i,i=void 0);if(typeof e==="object")d&&d.type==="group"&&(k=d),d=e.opacity,i=e.scalefactor,e=e.apply===void 0?!!d:e.apply;d===void 0&&(d=1);return this.attr("drop-shadow",e||!d?[1,1,5,"rgba(64,64,64,"+d+")",i,k]:"none")}}]);
FusionCharts(["private","modules.renderer.js-raphaelshapes",function(){var k=this.hcLib.Raphael,i="createTouch"in document,q=Math,B=q.cos,d=q.sin,h=q.abs,R=q.pow,e=q.atan2,w=q.min,aa=q.round,M=q.PI,K=2*M,W=parseInt,U=parseFloat,I=String,V=R(2,-24),$="rgba(192,192,192,"+(k.svg?1.0E-6:0.0020)+")",ga=k.eve,j=k.vml&&0.5||0;k.crispBound=k._cacher(function(e,d,l,h,i){var k={},q,e=e||0,d=d||0,l=l||0,h=h||0,i=i||0;q=i%2/2+j;k.x=aa(e+q)-q;k.y=aa(d+q)-q;k.width=aa(e+l+q)-q-k.x;k.height=aa(d+h+q)-q-k.y;k["stroke-width"]=
i;k.width===0&&l!==0&&(k.width=1);k.height===0&&h!==0&&(k.height=1);return k},k);k.el.crisp=function(){var e=this.attrs,d,l=this.attr(["x","y","width","height","stroke-width"]),l=k.crispBound(l.x,l.y,l.width,l.height,l["stroke-width"]);for(d in l)e[d]===l[d]&&delete l[d];return this.attr(l)};k.fn.polypath=function(){var e=arguments,d=e.length-1,l=e[d];l&&l.constructor===k.el.constructor?e[d]=void 0:l=void 0;d=this.path(void 0,l);d.ca.polypath=k.fn.polypath.ca;arguments.length-!!l&&d.attr("polypath",
[e[0],e[1],e[2],e[3],e[4],e[5]])||(d.attrs.polypath=[0,0,0,0,0,0]);return d};k.fn.polypath.ca=function(e,r,l,h,i,j){var q,x;q=[];e=W(e,10)||0;r=U(r)||0;l=U(l)||0;h=U(h)||0;i=i===null||isNaN(i)?M*0.5:k.rad(i);j=j===null||isNaN(j)?0:U(j);x=2*M/e;switch(e<3?-1:j===1?1:0){case 0:for(j=0;j<e;j++)q.push("L",r+h*B(-(i+j*x)),l+h*d(-(i+j*x)));q[0]="M";q.push("Z");break;case 1:for(j=0;j<e;j++)q.push("M",r,l,"L",r+h*B(-(i+j*x)),l+h*d(-(i+j*x)));break;case -1:h===0?q.push("M",r,l,"L",r,l,"Z"):q.push("M",r-h,
l,"A",h,h,0,0,0,r+h,l,"A",h,h,0,0,0,r-h,l,"Z")}return{path:q}};k.fn.ringpath=function(){var e=arguments,d=e.length-1,l=e[d];l&&l.constructor===k.el.constructor?e[d]=void 0:l=void 0;d=this.path(void 0,l);d.ca.ringpath=k.fn.ringpath.ca;arguments.length-!!l&&d.attr("ringpath",[e[0],e[1],e[2],e[3],e[4],e[5]])||(d.attrs.ringpath=[0,0,0,0,0,0]);return d};k.fn.ringpath.ca=function(e,r,l,i,k,j){var q=j%K-k%K,x,z;this._.ringangle=(k+j)*0.5;k===j?(x=B(k),k=d(k),l=["M",e+l*x,r+l*k,"Z"]):(h(q%=K)<V?(l=["M",e-
l,r,"A",l,l,0,0,0,e+l,r,"A",l,l,0,0,0,e-l,r],i!==0&&(l=l.concat(["M",e-i,r,"A",i,i,0,0,1,e+i,r,"A",i,i,0,0,1,e-i,r]))):(x=B(k),k=d(k),z=B(j),j=d(j),q<0&&(q+=K),q=q<M?0:1,l=["M",e+l*x,r+l*k,"A",l,l,0,q,1,e+l*z,r+l*j,"L",e+i*z,r+i*j],i!==0&&l.push("A",i,i,0,q,0,e+i*x,r+i*k)),l.push("Z"));return{path:l}};k.fn.cubepath=function(){var e={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},d=arguments,l=d.length-1,h=d[l],i;h&&h.constructor===k.el.constructor?d[l]=void 0:h=void 0;l=this.path(void 0,
h).attr(e);i=this.path(void 0,h).attr(e);e=this.path(void 0,h).attr(e);e._.cubetop=l.follow(e,void 0,"before");e._.cubeside=i.follow(e,void 0,"before");for(var j in k.fn.cubepath.ca)e.ca[j]=k.fn.cubepath.ca[j];return e.attr("cubepath",[d[0]||0,d[1]||0,d[2]||0,d[3]||0,d[4]||0,d[5]||0])};k.fn.cubepath.ca={cubepath:function(e,d,l,h,i,k){var j=this._.cubetop,x=this._.cubeside;this.attr("path",["M",e+l,d,"l",0,h,-l,0,0,-h,"z"]);j.attr("path",["M",e,d,"l",1,1,l-1,0,0,-1,i,-k,-l,0,"z"]);x.attr("path",["M",
e+l-1,d+1,"l",0,h-1,1,0,i,-k,0,-h,-i,k]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(){return!1},fill:function(d,r){var l=this._.cubetop,h=this._.cubeside,i=this.attr("cubepath")||[0,0,0,0,0,0],j=i[2],q=i[3],x=i[4],i=i[5],z,d=k.color(d);r?(j=d.h,q=d.s,z=(z=d.v)<=0.2?0.2:z,x=k.pick(d.opacity,1),this.attr("fill",d),l.attr("fill","hsba("+[j,q,z-0.1,x].join(",")+")"),h.attr("fill","hsba("+[j,q,z-0.2,x].join(",")+")")):(z="opacity"in d?"rgba("+[d.r,
d.g,d.b,d.opacity]+")":"rgb("+[d.r,d.g,d.b]+")",this.attr("fill",["285",k.tintshade(z,0.45).rgba,k.tintshade(z,-0.65).rgba].join("-")),h.attr("fill",[50+k.deg(e(q+i,x)),k.tintshade(z,-0.45).rgba,k.tintshade(z,-0.75).rgba].join("-")),l.attr("fill",[k.deg(e(i,x+j)),k.tintshade(z,-0.85).rgba,k.tintshade(z,0.35).rgba].join("-")));return!1}};k.ca["text-bound"]=function(e,d,l,h,i,j){var h=this.paper,q=this._.textbound;if(this.type==="text"){if((!d||d==="none")&&(!e||e==="none"))return this._.textbound=
q&&q.unfollow(this).remove(),!1;(!l||!k.is(l,"finite"))&&(l=0);(!i||!k.is(i,"finite"))&&(i=0);!q&&(q=this._.textbound=h.rect(0,0,0,0,this.group).follow(this,k.ca["text-bound"].reposition,"before"));q.attr({stroke:d,"stroke-width":l,fill:e,"shape-rendering":l===1&&"crisp"||"",r:i});j&&q.attr("stroke-dasharray",j);k.ca["text-bound"].reposition.call(q,this.attrs,this);return!1}};k.ca["text-bound"].reposition=function(e,d){var l={},h,i,j,q,x;e.hasOwnProperty("visibility")&&this.attr("visibility",e.visibility);
if(e.hasOwnProperty("text-bound")||e.hasOwnProperty("x")||e.hasOwnProperty("y")||e.hasOwnProperty("text")||e.hasOwnProperty("text-anchor")||e.hasOwnProperty("text-align")||e.hasOwnProperty("font-size")||e.hasOwnProperty("line-height")||e.hasOwnProperty("vertical-align")||e.hasOwnProperty("transform")){h=I((d.attrs["text-bound"]||[])[3]||"0").split(/\s*\,\s*/g);i=U(h[0])||0;h=k.pick(U(h[1]),i);j=d.getBBox();q=j.width;x=j.height;if(!isNaN(q))l.x=j.x-i,l.y=j.y-h,l.width=q+i*2,l.height=x+h*2;this.attr(l)}};
k.fn.scroller=function(e,d,l,i,j,q,w){var x=this.group("scroller",w),z=x.attrs,A=x._.scroller={},j=j&&"horizontal"||"vertical",c,b={},a,f;A.track=this.rect(x).mousedown(function(a){var b=z["scroll-position"],a=z["scroll-orientation"]==="horizontal"?a.layerX||a.x:a.layerY||a.y,a=(a-A.anchorOffset)/A.trackLength;c=k.animation({"scroll-position":a},2E3*h(b-a),"easeIn");x.animate(c);ga("raphael.scroll.start."+x.id,x,b)}).mouseup(function(){this.stop(c);ga("raphael.scroll.end."+this.id,this,z["scroll-position"])},
x,!0);A.anchor=this.rect(x).drag(function(){b["scroll-position"]=a+arguments[f]/A.trackLength;x.animate(b,0)},function(b,c,e){f=z["scroll-orientation"]==="horizontal"?0:1;ga("raphael.scroll.start."+x.id,x,a=z["scroll-position"]);e.stopPropagation()},function(){ga("raphael.scroll.end."+x.id,x,a=z["scroll-position"])});for(var s in k.fn.scroller.fn)x[s]=k.fn.scroller.fn[s];for(s in k.fn.scroller.ca)x.ca[s]=k.fn.scroller.ca[s];z["scroll-orientation"]=j;x.ca["scroll-repaint"]=x.ca["scroll-repaint-"+j];
!k.is(q,"object")&&(q={});return x.attr({ishot:!0,"scroll-display-buttons":q.showButtons&&"arrow"||"none","scroll-display-style":q.displayStyleFlat&&"flat"||"3d","scroll-ratio":U(q.scrollRatio)||1,"scroll-position":U(q.scrollPosition)||0,"scroll-repaint":[e,d,l,i]})};k.fn.scroller.fn={scroll:function(e,d){var l=this._.scroller,d=d||this;l.callback=function(){return e.apply(d,arguments)};return this}};k.fn.scroller.ca={"scroll-display-style":function(e){var d=this.attrs,l=d["scroll-display-style"],
h=d.fill,e={flat:"flat","3d":"3d"}[e]||l;h&&e!==l&&(d["scroll-display-style"]=e,this.attr("fill",h));return{"scroll-display-style":e}},"scroll-display-buttons":function(e){var d=this,l=d.paper,h=d._.scroller,i=d.attrs,j=i["scroll-display-buttons"],q=i["scroll-repaint"],x,z,e={none:"none",arrow:"arrow"}[e]||j;if(e!==j)i["scroll-display-buttons"]=e,e==="none"&&h.start?(h.arrowstart.remove(),delete h.arrowstart,h.arrowend.remove(),delete h.arrowend,h.start.remove(),delete h.start,h.end.remove(),delete h.end):
(h.arrowstart=l.polypath(d),h.arrowend=l.polypath(d),h.start=l.rect(d).mousedown(function(){var e;if((e=i["scroll-position"])!==0)d.animate({"scroll-position":e-0.1},100).animate(x=k.animation({"scroll-position":0},4500*e,"easeIn")),ga("raphael.scroll.start."+d.id,d,e)}).mouseup(function(){d.stop(x);ga("raphael.scroll.end."+d.id,d,i["scroll-position"])},d,!0),h.end=l.rect(d).mousedown(function(){var e;if((e=i["scroll-position"])!==1)d.animate({"scroll-position":e+0.1},100).animate(z=k.animation({"scroll-position":1},
4500*(1-e),"easeIn")),ga("raphael.scroll.start."+d.id,d,e)}).mouseup(function(){d.stop(z);ga("raphael.scroll.end."+d.id,d,i["scroll-position"])},d,!0),i.fill&&d.attr("fill",i.fill)),q&&d.attr("scroll-repaint",q);return{"scroll-display-buttons":e}},"scroll-orientation":function(e){var d=this.attrs,l=d["scroll-repaint"],h=d["scroll-orientation"],e={horizontal:"horizontal",vertical:"vertical"}[e]||h;h!==e&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+e],l&&(l[2]+=l[3],l[3]=l[2]-l[3],l[2]-=l[3],
this.attr("scroll-repaint",l)),d.fill&&this.attr("fill",d.fill));return{"scroll-orientation":e}},"scroll-ratio":function(e){var d=this.attrs,l=d["scroll-ratio"],h=d["scroll-repaint"],e=e>1?1:e<0.01?0.01:U(e);h&&e!==l&&(d["scroll-ratio"]=e,this.attr("scroll-repaint",h));return{"scroll-ratio":e}},"scroll-position":function(e,d){var l=this.attrs,h=l["scroll-orientation"]==="horizontal",i=l["scroll-repaint"],k=l["scroll-position"],j=this._.scroller,x=j.anchor,e=e>1?1:e<0?0:U(e);isNaN(e)&&(e=k);if(i&&
(k!==e||d))k=j.start&&j.start.attr(h&&"width"||"height")||0,h&&x.attr("x",i[0]+k+(i[2]-2*k-x.attr("width")+1)*e+0.5)||x.attr("y",i[1]+k+(i[3]-2*k-x.attr("height")+1)*e+0.5),!d&&l["scroll-ratio"]<1&&(ga("raphael.scroll.change."+this.id,this,e),j.callback&&j.callback(e));return{"scroll-position":e}},"scroll-repaint-horizontal":function(e,d,l,h){var i=this.attrs,k=this._.scroller,j=i["scroll-ratio"],x=i["scroll-position"],q=0,A=l*j;k.track.attr({width:l,height:h,y:d,x:e,r:2});i["scroll-display-buttons"]!==
"none"&&(q=w(h,l*0.5),A-=q*2*j,k.start.attr({width:q,height:h,x:e,y:d}),k.arrowstart.attr("polypath",[3,e+q*0.5,d+h*0.5,q*0.25,180]),k.end.attr({width:q,height:h,x:e+l-q,y:d}),k.arrowend.attr("polypath",[3,e+l-q*0.5,d+q*0.5,q*0.25,0]));k.trackLength=l-2*q-A;k.trackOffset=e+q+0.5;k.anchorOffset=k.trackOffset+(A-1)*0.5;k.anchor.attr({height:h-1,width:A-1,y:d+0.5,x:k.trackOffset+k.trackLength*x,r:2})},"scroll-repaint-vertical":function(e,d,l,h){var i=this.attrs,k=this._.scroller,j=i["scroll-ratio"],
x=i["scroll-position"],q=0,A=h*j;k.track.attr({width:l,height:h,y:d,x:e});i["scroll-display-buttons"]!=="none"&&(q=w(l,h*0.5),A-=q*2*j,k.start.attr({width:l,height:q,x:e,y:d}),k.arrowstart.attr("polypath",[3,e+l*0.5,d+q*0.5,q*0.25,90]),k.end.attr({width:l,height:q,x:e,y:d+h-q}),k.arrowend.attr("polypath",[3,e+l*0.5,d+h-q*0.5,q*0.25,-90]));k.trackLength=h-2*q-A;k.trackOffset=d+q+0.5;k.anchorOffset=k.trackOffset+(A-1)*0.5;k.anchor.attr({height:A-1,width:l-1,y:k.trackOffset+k.trackLength*x,x:e+0.5,r:2})},
fill:function(e){var d=this.attrs,l=this._.scroller,h=d["scroll-repaint"],j=d["scroll-display-style"]==="flat",q=d["scroll-orientation"]==="horizontal",w={stroke:"none"},x;if(i&&h&&(x=16-h[q&&3||2])>3)w.stroke=$,w["stroke-width"]=x;e=k.color(e);e.error&&(e="#000000");e="opacity"in e?"rgba("+[e.r,e.g,e.b,e.opacity]+")":"rgb("+[e.r,e.g,e.b]+")";w.fill=j&&e||[90*q,k.tintshade(e,0.15).rgba,e].join("-");l.track.attr(w);w.fill=j&&k.tintshade(e,-0.4).rgba||[270*q,k.tintshade(e,-0.7).rgba,k.tintshade(e,-0.4).rgba].join("-");
l.anchor.attr(w);if(d["scroll-display-buttons"]!=="none")w.fill=$,l.start.attr(w),l.end.attr(w),w.fill=l.anchor.attr("fill"),l.arrowstart.attr(w),l.arrowend.attr(w);return!1}};var ia=Array.prototype.slice;k.fn.symbol=function(){var e=arguments,d=e.length-1,l=e[d];l&&l.constructor===k.el.constructor?e[d]=void 0:l=void 0;d=this.path(void 0,l);d.ca.symbol=k.fn.symbol.ca.symbol;return e.length===!!l+0?d:d.attr("symbol",e)};k.fn.symbol.cache={"":k._cacher(function(e,d,l,h){return arguments.length>3?["M",
e,d,"h",l,"v",h,"h",-l,"v",-h,"z"]:["M",e-l,d-l,"h",l*=2,"v",l,"h",-l,"v",-l,"z"]})};k.fn.symbol.ca={symbol:function(e){var d=k.is(e,"object")&&arguments.length===1&&!k.is(e,"function")?e:arguments,l;d===e&&(e=d[0]);d=(l=k.is(e,"function")&&e||k.fn.symbol.cache[e]||k.fn.symbol.cache[""])&&l.apply(k,ia.call(d,1));k.is(d,"array")||k.is(d,"string")?this.attr("path",d):d&&this.attr(d)}};k.addSymbol=function(e,d){var l=k.is(d,"function")&&(l={},l[e]=d,l)||e,h=k.fn.symbol.cache,i=[],j;for(j in l)d=l[j],
h[j]=k.is(d,"function")&&k._cacher(d,k)||(i.push(j),d);for(;j=i.pop();)h[j]=h[h[j]]};k.fn.button=function(e,d,l,h,i,j){j=this.group("button",j);j._.button={bound:this.rect(j),tracker:this.rect(j).attr({fill:$,stroke:$,cursor:"pointer"}).data("compositeButton",j)};var q;!k.is(i,"object")&&(i={});for(q in k.fn.button.fn)j[q]=k.fn.button.fn[q];for(q in k.fn.button.ca)j.ca[q]=k.fn.button.ca[q];return j.attr({ishot:!0,"button-padding":[i.horizontalPadding,i.verticalPadding],"button-label":l,"button-symbol":h,
"button-disabled":i.disabled,"button-symbol-position":i.symbolPosition,"button-symbol-padding":i.symbolPadding}).attr("button-repaint",[e,d,i.width,i.height,i.r])};k.fn.button.e={hoverin:function(){var e=this._.button.hoverbackIn;e&&e()===!1||(this.attr("fill","hover").hovered=!0)},hoverout:function(){var e=this._.button.hoverbackOut;e&&e()===!1||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var e=
this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;e()}};k.fn.button.fn={buttonclick:function(e,d){var l=this._.button,d=d||this;l.callback=function(){return e.apply(d,arguments)};return this},labelcss:function(){var e=this._.button,d=e.label;e.cssArg=arguments;d&&d.css.apply(d,arguments);return this},buttonhover:function(e,d,l,h){var i=this._.button,l=l||this,h=h||this;i.hoverbackIn=function(){return e.apply(l,arguments)};i.hoverbackOut=function(){return d.apply(h,
arguments)};return this}};k.fn.button.ca={"button-active":function(e){this.attr("fill",(this.active=!!e)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(e){var d=this.paper,l=this._.button.tracker,h=d.button.e,e=I(e);e==="disabled"||e==="true"||e==="1"?l.attr("fill","rgba(204,204,205,.5)").unmousedown(h.mousedown).unmouseup(h.mouseup).unhover(d.button.e.hoverin,d.button.e.hoverout):l.attr("fill",$).mousedown(h.mousedown,this).mouseup(h.mouseup,this,!0).hover(d.button.e.hoverin,
d.button.e.hoverout,this,this)},"button-label":function(e){var d=this._.button,l=this.attrs,h=d.label,i=d.cssArg,k=this.attrs["button-repaint"],e=I(e||"");if(e==="none")h&&(d.label=h.remove());else if(e)!h&&(h=d.label=this.paper.text(this).insertBefore(d.tracker)),h.attr({text:e,"text-anchor":"start","vertical-align":"top"}),i&&i.length&&h.css.apply(h,i);k&&l["button-label"]!==e&&this.attr("button-repaint",k)},"button-symbol":function(e){var d=this.attrs,l=this._.button,h=l.symbol,i=this.attrs["button-repaint"],
e=I(e||"");if(e==="none")h&&(l.symbol=h.remove());else if(e&&!h)l.symbol=this.paper.symbol(this).insertAfter(l.bound);i&&d["button-symbol"]!==e&&this.attr("button-repaint",i)},"button-symbol-position":function(e){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[I(e).toLowerCase()]||"none"}},"button-symbol-padding":function(e){return{"button-symbol-padding":U(e)}},"button-padding":function(e,d){return{"button-padding":[e==null&&(e=5)||U(e),d==null&&
e||U(d)]}},"button-repaint":function(e,d,l,h,i){var j=this._.button,q=j.bound,x=j.label,z=j.symbol,A=this.attrs,c=A["button-padding"],b=c[0],a=c[1],f;e==void 0&&(e=0);d==void 0&&(d=0);if(l==void 0||h==void 0)f=x&&x.getBBox()||{width:0,height:0},l==void 0&&(l=b*2+f.width),h==void 0&&(h=a*2+f.height);q=k.crispBound(e,d,l,h,q.attr("stroke-width"));q.r=k.pick(i,aa(w(h,l)*0.1));e=q.x;d=q.y;l=q.width;h=q.height;x&&x.attr({x:e+b,y:d+a});if(z){!k.is(f=A["button-symbol-padding"],"finite")&&(f=h*0.2);i=(h-
a)*0.5;switch(A["button-symbol-position"]+(x&&"+"||"-")){case "right+":l+=i*2+a;e=e+l-i-b;d+=h*0.5;break;case "left+":e=e+b+i;d+=h*0.5;x.attr("x",e+i+f);break;case "top+":e+=l*0.5;d=d+c[1]+i;x&&x.attr("y",d+i+f);break;case "bottom+":h+=i*2+f;e+=l*0.5;d=d+h-a-i;break;default:e+=l*0.5,d+=h*0.5}z.attr("symbol",[A["button-symbol"],e,d,i])}j.bound.attr(q);j.tracker.attr(q)},fill:function(e,d,l,h){var i=this._.button,j=i.bound,q=i.symbol,x=i.label,w={normal:i.gradient,active:i.gradientActive,hover:i.gradientHover}[e];
if(!w)e=k.getRGB(e),e.error&&(e=k.color("#cccccc")),e="opacity"in e?"rgba("+[e.r,e.g,e.b,e.opacity]+")":"rgb("+[e.r,e.g,e.b]+")",i.gradient=[90,k.tintshade(e,-0.8).rgba+":0",k.tintshade(e,0.8).rgba+":100"].join("-"),i.gradientActive=[270,k.tintshade(e,-0.8).rgba+":0",k.tintshade(e,0.8).rgba+":100"].join("-"),h=k.getRGB(h),h.error&&(h=e)||(h="opacity"in h?"rgba("+[h.r,h.g,h.b,h.opacity]+")":"rgb("+[h.r,h.g,h.b]+")"),i.gradientHover=[90,k.tintshade(h,-0.9).rgba+":0",k.tintshade(h,0.7).rgba+":100"].join("-"),
l=l||k.tintshade(e,0.2).rgba,d=d||k.tintshade(e,-0.2).rgba,i.symbolFill=l,i.labelFill=d,w=(this.pressed||this.active)&&i.gradientActive||this.hovered&&i.gradienthover||i.gradient;j.attr("fill",w);q&&q.attr("fill",i.symbolFill);x&&x.attr("fill",i.labelFill);return!1},stroke:function(e,d){var h=this._.button,i=h.symbol,e=k.color(e);e.error&&(e=k.color("#999999"));h.bound.attr("stroke",e);i&&i.attr("stroke",d||e);return!1},"stroke-width":function(e,d){var h=this._.button,i=h.symbol;h.bound.attr("stroke-width",
e);h.tracker.attr("stroke-width",e);i&&i.attr("stroke-width",d);return!1}}}]);
FusionCharts(["private","modules.renderer.js-raphaelexport",function(){var k=this.hcLib,i=k.Raphael,q=k.pluckNumber,B=k.pluck,d=i._availableAttrs,h=/^matrix\(|\)$/g,R=/\,/g,e=/\n|<br\s*?\/?>/ig,w=/[^\d\.]/ig,aa=/[\(\)\s,\xb0#]/g,M=/group/ig,K=/&/g,W=/"/g,U=/'/g,I=/</g,V=/>/g;(function(i){var k=Math,j=parseFloat,ia=k.max,n=k.abs,r=k.pow,l=String,P=/[, ]+/,X=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/ig,repStr:""},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},
{reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/\<desc\>[^\<]*\<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/\<ima?ge? ([^\>]+?)[^\/]\>/gi,repStr:"<image $1 />"},{reg:/\<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(e){return e.toLowerCase()}}],S={blur:function(){},transform:function(){},src:function(e,
d){d.attrSTR+=' xlink:href="'+d.attrs.src+'"'},path:function(e,d){var h=d.attrs.path,h=i._pathToAbsolute(h||"");d.attrSTR+=' d="'+(h.toString&&h.toString()||"").replace(R," ")+'"'},gradient:function(e,d,h){var c=e.attrs.gradient,b="linear",a,f,q=0.5,o=0.5,v=f="",w="";a=c.replace(aa,"_");if(!h[a]){c=l(c).replace(i._radial_gradient,function(a,c,e){b="radial";c&&e&&(q=j(c),o=j(e),a=(o>0.5)*2-1,r(q-0.5,2)+r(o-0.5,2)>0.25&&(o=k.sqrt(0.25-r(q-0.5,2))*a+0.5)&&o!=0.5&&(o=o.toFixed(5)-1.0E-5*a));return""});
c=c.split(/\s*\-\s*/);if(b==="linear"){f=c.shift();f=-j(f);if(isNaN(f))return null;var B=[0,0,k.cos(i.rad(f)),k.sin(i.rad(f))];f=1/(ia(n(B[2]),n(B[3]))||1);B[2]*=f;B[3]*=f;B[2]<0&&(B[0]=-B[2],B[2]=0);B[3]<0&&(B[1]=-B[3],B[3]=0)}c=i._parseDots(c);if(!c)return null;b==="radial"?(f='<radialGradient fx = "'+q+'" fy = "'+o+'" id = "'+a+'">',v="</radialGradient>"):(f='<linearGradient x1 = "'+B[0]+'" y1 = "'+B[1]+'" x2 = "'+B[2]+'" y2 = "'+B[3]+'" gradientTransform ="matrix('+e.matrix.invert()+')" id = "'+
a+'">',v="</linearGradient>");e=0;for(B=c.length;e<B;e++)w+='<stop offset="'+(c[e].offset?c[e].offset:e?"100%":"0%")+'" stop-color="'+(c[e].color||"#fff")+'" stop-opacity="'+(c[e].opacity===void 0?1:c[e].opacity)+'" />';h[a]=!0;h.str+=f+w+v}d.attrSTR+=" fill=\"url('#"+a+"')\""},fill:function(e,d){var h=d.attrs,c=h.fill,b;if(!e.attrs.gradient)if(c=i.color(c),b=c.opacity,e.type==="text")d.styleSTR+="fill:"+c+"; stroke-opacity:0; ";else if(d.attrSTR+=' fill="'+c+'"',!h["fill-opacity"]&&(b||b===0))d.attrSTR+=
' fill-opacity="'+b+'"'},stroke:function(e,d){var h=d.attrs,c,b;c=i.color(h.stroke);b=c.opacity;if(e.type!=="text"&&(d.attrSTR+=' stroke="'+c+'"',!h["stroke-opacity"]&&(b||b===0)))d.attrSTR+=' stroke-opacity="'+b+'"'},"clip-rect":function(e,d,h){var c=l(d.attrs["clip-rect"]),e=c.split(P),c=c.replace(aa,"_");e.length===4&&(h[c]||(h[c]=!0,h.str+='<clipPath id="'+c+'"><rect x="'+e[0]+'" y="'+e[1]+'" width="'+e[2]+'" height="'+e[3]+'"/></clipPath>'),d.attrSTR+=' clip-path="url(#'+c+')"')},cursor:function(e,
d){var h=d.attrs.cursor;h&&(d.styleSTR+="cursor:"+h+"; ")},font:function(e,d){d.styleSTR+="font:"+d.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(e,d){var h=B(d.attrs["font-size"],"10");h&&h.replace&&(h=h.replace(w,""));d.styleSTR+="font-size:"+h+"px; "},"font-weight":function(e,d){d.styleSTR+="font-weight:"+d.attrs["font-weight"]+"; "},"font-family":function(e,d){d.styleSTR+="font-family:"+d.attrs["font-family"]+"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},
"vertical-align":function(){},text:function(d,h){var i=h.attrs,c=i.text,b=B(i["font-size"],i.font,"10"),a=B(i["line-height"]),f;b&&b.replace&&(b=b.replace(w,""));b=q(b);a&&a.replace&&(a=a.replace(w,""));a=q(a,b&&b*1.2);f=b?b*0.85:a*0.75;for(var b=i.x,k=B(i["vertical-align"],"middle").toLowerCase(),c=l(c).split(e),i=c.length,o=0,k=k==="top"?f:k==="bottom"?f-a*i:f-a*i*0.5;o<i;o++)h.textSTR+="<tspan ",f=(c[o]||"").replace(K,"&amp;").replace(W,"&quot;").replace(U,"&#39;").replace(I,"&lt;").replace(V,
"&gt;"),h.textSTR+=o?'dy="'+a+'" x="'+b+'" ':'dy="'+k+'"',h.textSTR+=">"+f+"</tspan>"}},L=function(e,l){var i="",c={attrSTR:"",styleSTR:"",textSTR:"",attrs:e.attr()},b=e.isShadow,a="",f="",k,o,j=c.attrs;if(e.node.style.display!=="none"&&!b){for(k in j)if(k!=="gradient"&&(d[k]!==void 0||S[k]))if(S[k])S[k](e,c,l);else c.attrSTR+=" "+k+'="'+j[k]+'"';e.attrs.gradient&&S.gradient(e,c,l);for(o in e.styles)c.styleSTR+=o+":"+e.styles[o]+"; ";e.type==="image"&&(c.attrSTR+=' preserveAspectRatio="none"');e.type===
"text"&&!j["text-anchor"]&&(c.attrSTR+=' text-anchor="middle"');e.bottom&&(a=L(e.bottom,l));e.next&&(f=L(e.next,l));b=e.type;b.match(M)?(b="g",k="1,0,0,1,0,0"):k=e.matrix.toMatrixString().replace(h,"");i+="<"+b+' transform="matrix('+k+')" style="'+c.styleSTR+'"'+c.attrSTR+">"+c.textSTR+a+"</"+b+">"+f}else e.next&&(i+=L(e.next,l));return i};i.fn.toSVG=function(e){var d="",h={str:""},c=0,b=X.length,a="";if(i.svg){if(this.canvas&&this.canvas.parentNode)for(d=this.canvas.parentNode.innerHTML;c<b;c+=1)h=
X[c],d=d.replace(h.reg,h.repStr)}else d='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(a=L(this.bottom,h)),d+="<defs>"+h.str+"</defs>"+a+"</svg>";e&&(d=d.replace(/\<image [^\>]*\>/gi,""));return d}})(i)}]);
FusionCharts(["private","modules.renderer.js-raphaeltooltip",function(){var k=document,i=this.hcLib,q=i.Raphael,B=q.eve,d=i.createElement,h=i.addEvent,R=i.removeEvent,e=i.getPosition,w=i.hasTouch,aa=i.getTouchEvent,M=window.Math,K=M.ceil,W=M.floor,U={"":1,moz:1,webkit:1,o:1,ms:1},I={borderRadius:"borderRadius",boxShadow:"boxShadow"},V=/\-([a-z])/ig,$=function(e,d){return d.toUpperCase()},ga=function(e){var d=j.forbiddenStyle,h,l,i;for(h in e)l=V.test(h)?h.replace(V,$):h,e[h]!==void 0&&!d[l]&&(this[l]=
e[h]),q.vml&&/color/ig.test(l)&&(this[l]=q.getRGB(this[l]).toString());for(h in I)if(this[h])for(i in U)this[i+h]=this[h]},j=i.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:8,defaultStyle:i.extend2(ga.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",textAlign:"left",
margin:"0",zIndex:"999",pointer:"default",display:"block"},forbiddenStyle:{}};if(q.svg)j.defaultContainerStyle.pointerEvents="none",j.defaultStyle.borderRadius="0",j.defaultStyle.boxShadow="none";if(q.vml)j.forbiddenStyle.borderRadius=!0,j.forbiddenStyle.boxShadow=!0,j.defaultStyle.filter="";j.setup=function(){var e=j.container,i=j.textElement,r=j.style,l=j.defaultContainerStyle,I=j.forbiddenStyle,U;if(!e)e=j.element=d("span"),(k.body||k.getElementsByTagName("body")[0]).appendChild(e),e.setAttribute("id",
j.elementId),r=j.containerStyle=q.vml?e.runtimeStyle:e.style,i=j.textElement=d("span"),e.appendChild(i),j.style=q.vml?i.runtimeStyle:i.style,j.style.overflow="hidden",j.style.display="block",j.hidden=!1,j.hide();for(U in l)!I[U]&&(r[U]=l[U]);h(e,w&&"touchstart"||"mouseover",j.onredraw);j.scatted=!0;B.on("raphael.drag.start.*",function(){j.scatted&&j.block()});B.on("raphael.drag.end.*",function(){j.scatted&&j.unblock(!0)});B.on("raphael.remove",function(){if(j.currentPaper===this||j.currentTarget&&
j.currentTarget.paper===this)j.hide(),j.currentTarget=j.currentPaper=null})};j.restyle=function(e){var d=j.style,h;for(h in e)d[h]=e[h]};j.onelement=function(d){var h=d.data,i=h.paper;if(i.__tip_style){j.hiding&&(j.hiding=clearTimeout(j.hiding));if(j.currentPaper!==i)i.__tip_cp=i.canvas&&e(i.canvas,!0)||{},j.restyle(i.__tip_style),j.currentPaper=i;j.lastTarget=j.currentTarget;j.currentTarget=h;j.scatted=h.__tip_scatted;j.onredraw.call(this,d)}};j.onredraw=function(e){j.redrawing&&clearTimeout(j.redrawing);
e=aa(e);j.x=W(e.pageX);j.y=W(e.pageY);j.redrawing=setTimeout(j.redraw,0)};j.onhide=function(){j.hiding=setTimeout(j.hide,200)};j.redraw=function(){if(!j.blocked&&j.currentTarget){var e=j.currentTarget,d=e.paper,h=j.textElement,i=j.containerStyle,q=j.style,w=e.__tip_text,e=j.pointeroffset,B=d.__tip_cp,U=k.documentElement||k.body,x=U.scrollLeft,U=U.scrollTop,z=j.x,A=j.y,c,b=d.width,d=d.height;if(w!==j.text){if(j.hidden)j.containerStyle.top="-999em",j.show();j.text=w;i.width=i.height="";h.innerHTML=
w;q.whiteSpace="nowrap";w=K(q.pixelWidth||h.offsetWidth||0);c=K(q.pixelHeight||h.offsetHeight||0);q.whiteSpace="normal";i.width=(j.textWidthOverflow=w>b)?(b||0)-e*2+"px":"";i.height=(j.textHeightOverflow=c>d)?(d||0)-e*2+"px":""}w=K(q.pixelWidth||h.offsetWidth||0);c=K(q.pixelHeight||h.offsetHeight||0);j.textWidthOverflow?z=B.left-x:z+e+w>B.left-x+b-e&&(z=z-w-e);j.textHeightOverflow?A=B.top-U:A+e+c>B.top-U+d-e&&(A=A-c-e*1.5);i.left=(z+e||0)+"px";i.top=(A+e||0)+"px";j.hidden&&j.show()}};j.hide=function(){j.hiding&&
(j.hiding=clearTimeout(j.hiding));j.containerStyle.display="none";j.hidden=!0};j.show=function(){if(!j.blocked)j.hiding&&(j.hiding=clearTimeout(j.hiding)),j.containerStyle.display="inline",j.hidden=!1};j.block=function(){j.blocked=!0;j.containerStyle.display="none"};j.unblock=function(e){j.blocked=!1;e&&(j.containerStyle.display=j.hidden&&"none"||"inline")};q.fn.tooltip=function(d,h){var i;if(h)i=(h.opacity===void 0?1:h.opacity)*0.4,q.svg?d.boxShadow="1px 1px 3px rgba(64,64,64,"+i+")":d.filter="progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#404040', shadowOpacity='"+
i/2+"')";this.__tip_style=new ga(d);this.__tip_cp=this.canvas&&e(this.canvas,!0)||{};return this};q.el.tooltip=function(e){j.setup();q.el.tooltip=function(e,d,i,k,q){d=this.node;i=e==void 0||!(e+"");this.__tip_scatted=k==void 0?this.__tip_scatted:!k;this.__tip_scatted==void 0&&(this.__tip_scatted=!0);if(q!=null)this.__tip_blocked=q;i^!this.__tip_text&&(w?(i?R:h)(d,"click",j.onelement,this):i?(R(d,"mouseover",j.onelement,this),R(d,"mousemove",j.onredraw,this),R(d,"mouseout",j.onhide,this)):(h(d,"mouseover",
j.onelement,this),h(d,"mousemove",j.onredraw,this),h(d,"mouseout",j.onhide,this)));this.__tip_text=e;if(j.currentTarget===this&&e!==j.text&&!j.hidden)j[i?"hide":"redraw"]();return this};return q.el.tooltip.call(this,e)}}]);
FusionCharts(["private","modules.renderer.js-base",function(){var k=this,i=k.hcLib,q=window.document,B=i.BLANKSTRING,d=i.createTrendLine,h=i.pluck,R=i.getValidValue,e=i.pluckNumber,w=i.defaultPaletteOptions,aa=i.getFirstValue,M=i.getDefinedColor,K=i.parseUnsafeString,W=i.FC_CONFIG_STRING,U=i.extend2,I=i.getDashStyle,V=i.toPrecision,$=i.regex.dropHash,ga=i.HASHSTRING,j=i.getSentenceCase,ia=i.addEvent,n=Math,r=n.min,l=n.max,P=n.ceil,X=n.floor,S=n.log,L=n.pow,x=i.graphics.getColumnColor,z=i.getFirstColor,
A=i.setLineHeight,c=i.pluckFontSize,b=i.getFirstAlpha,a=i.graphics.getDarkColor,f=i.graphics.getLightColor,s=i.graphics.convertColor,o=i.COLOR_TRANSPARENT,v=i.POSITION_CENTER,Q=i.POSITION_TOP,sa=i.POSITION_BOTTOM,Aa=i.POSITION_RIGHT,La=i.POSITION_LEFT,J=i.chartAPI,ta=i.titleSpaceManager,n=i.placeLegendBlockBottom,Ga=i.placeLegendBlockRight,ka=i.graphics.mapSymbolName,n=J.singleseries,Ga=J.multiseries,ma=i.COMMASTRING,Ka=i.STRINGUNDEFINED,oa=i.ZEROSTRING,da=i.ONESTRING,qa=i.HUNDREDSTRING,Ca=i.PXSTRING,
cb=i.COMMASPACE,Ma=!/fusioncharts\.com$/i.test(location.hostname),$a=i.CREDIT_STRING="FusionCharts XT Trial",db=i.BLANKSTRINGPLACEHOLDER,Qa=i.BGRATIOSTRING,fb=i.COLOR_WHITE,eb=i.TESTSTR,Za=i.graphics.getAngle,Va=i.axisLabelAdder,Wa=i.falseFN,Ra=i.SmartLabelManager,gb=i.NumberFormatter,Na=i.getLinkAction,bb=i.getAxisLimits,g=i.createDialog,t=function(a,b){return a>0?S(a)/S(b||10):null},p=i.hasTouch=document.documentElement.ontouchstart!==void 0;i.removeEvent=function(a,b,c){var e=q.removeEventListener?
"removeEventListener":"detachEvent";q[e]&&!a[e]&&(a[e]=function(){});jQuery(a).unbind(b,c)};var C=i.fireEvent=function(a,b,c,e){var g=jQ.Event(b),d="detached"+b;U(g,c);a[b]&&(a[d]=a[b],a[b]=null);jQuery(a).trigger(g);a[d]&&(a[b]=a[d],a[d]=null);e&&!g.isDefaultPrevented()&&e(g)},E={fontWeight:{1:"bold",0:"normal"},fontStyle:{1:"italic",0:"normal"},textDecoration:{1:"underline",0:"none"}},Z={font:function(a,b){b.style.fontFamily=a},size:function(a,b){if(a)b.style.fontSize=c(a)+Ca},color:function(a,
b,c){b.style.color=a&&a.replace&&a.replace($,ga)||B;if(c)b.color=b.style.color},bgcolor:function(a,b){b.style.backgroundColor=a&&a.replace&&a.replace($,ga)||B},bordercolor:function(a,b){b.style.border="1px solid";b.style.borderColor=a&&a.replace&&a.replace($,ga)||B},ishtml:B,leftmargin:function(a,b){b.style.marginLeft=e(a,0)+Ca},letterspacing:function(a,b){b.style.letterSpacing=e(a,0)+Ca},bold:function(a,b){b.style.fontWeight=E.fontWeight[a]||""},italic:function(a,b){b.style.fontStyle=E.fontStyle[a]||
""},underline:function(a,b){b.style.textDecoration=E.textDecoration[a]||""}},ba={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",
bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},ha=function(){var a={},b,c=function(){var c,e,g,d,D=0,f;for(c in a)if(D+=1,e=a[c],g=e.jsVars,d=(e=e.ref)&&e.parentNode){if(f=
d.offsetWidth,d=d.offsetHeight,!g.resizeLocked&&(g._containerOffsetW!==f||g._containerOffsetH!==d))e.resize&&e.resize(),g._containerOffsetW=f,g._containerOffsetH=d}else delete a[c],D-=1;D||(b=clearInterval(b))};return function(e){var g=e.jsVars,d=e.ref&&e.ref.parentNode||{};g._containerOffsetW=d.offsetWidth;g._containerOffsetH=d.offsetHeight;a[e.id]=e;b||(b=setInterval(c,300))}}(),N={getExternalInterfaceMethods:function(){var a=J[this.jsVars.type],a=a&&a.eiMethods,b="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,";
if(typeof a==="string")b+=a+ma;else if(a!==void 0||a!==null)for(var c in a)b+=c+ma;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,c=b.$overlayButton;if(a&&a.show){if(!c)c=b.$overlayButton=jQuery("<span>"),c.click(function(){k.raiseEvent("OverlayButtonClick",a,b.fcObj)});c.text(a.message?a.message:"Back");b.overlayButtonMessage=c.text();c.css({border:"1px solid "+(a.borderColor?a.borderColor.replace($,ga):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace($,ga):
"#edefec",fontFamily:a.font?a.font:"Verdana",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Ca,padding:(a.padding?a.padding:"3")+Ca,fontWeight:parseInt(a.bold,10)===0?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"});b.hcObj.container.appendChild(c[0]);b.overlayButtonActive=!0}else if(c)c.detach(),b.overlayButtonActive=!1,delete b.overlayButtonMessage},print:function(){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&
this.jsVars.hcObj.print()},exportChart86:function(a){var b=this.jsVars.hcObj;if(b&&b.options&&b.options.exporting&&b.options.exporting.enabled)return b.exportChart(a);return!1},getSVGString:function(){return this.jsVars&&this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},resize:function(){var a=this.jsVars,b=a.container,c=a.fcObj,e=a.hcObj;e&&(e&&e.destroy&&e.destroy(),i.createChart(a.fcObj,b,a.type,void 0,void 0,!1),delete a.isResizing,i.raiseEvent("resized",{width:c.width,
height:c.height,prevWidth:a.width,prevHeight:a.height},c,[c.id]))},lockResize:function(a){return this.jsVars.resizeLocked=a===void 0&&!0||a},showChartMessage:function(a,b,c){var e=this.jsVars,g=e.hcObj;e.msgStore[a]&&(a=e.msgStore[a]);b&&g&&g.hasRendered?a?g.showMessage(a,c):g.hideLoading():(g&&g.destroy&&g.destroy(),i.createChart(e.fcObj,e.container,e.type,void 0,a));return a},signature:function(){return"FusionCharts/3.2.3 (XT)"}};i.createChart=function(a,b,c,e,m,d,f){var p=a.jsVars,h=p.msgStore,
t,l=J[c],o,j=function(g){var m={renderer:"javascript"},d=p.fcObj,f=d.width,h=d.height,G=l&&l.eiMethods,t=p.$overlayButton;b.jsVars=a.jsVars;p.container=b;p.hcObj=g;p.type=c;p.width=b.offsetWidth;p.height=b.offsetHeight;p.instanceAPI=o;if(g.hasRendered){k.extend(b,N);if(G&&typeof G!=="string")for(var F in G)b[F]=G[F];p.overlayButtonActive&&t&&(t.text(p.overlayButtonMessage),g.container.appendChild(t[0]))}e&&(e({success:g.hasRendered,ref:b,id:a.id}),g.hasRendered&&(f=Number((f&&f.match&&f.match(/^\s*(\d*\.?\d*)\%\s*$/)||
[])[1]),h=Number((h&&h.match&&h.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),(f||h)&&d.ref&&d.ref.parentNode&&ha(d),i.raiseEvent("loaded",{type:c,renderer:"javascript"},a,[a.id]),i.raiseEvent("rendered",{renderer:"javascript"},d,[d.id])));if(g.hasRendered&&p.previousDrawCount<p.drawCount)m.width=p.width,m.height=p.height,m.drawCount=p.drawCount,m.drawingLatency=o.drawingLatency,m.displayingMessage=p.hasNativeMessage,i.raiseEvent("drawcomplete",m,d,[d.id])};a.__state.dataReady=!1;p.instanceAPI&&p.instanceAPI.dispose&&
p.instanceAPI.dispose();o=l?new J(c):new J("stub");o.chartInstance=a;if(m!==void 0){if(typeof m==="string")m=new g(b,m),p.hasNativeMessage=!0}else!l||!l.init||l&&l.name==="stub"?(m=new g(b,h.ChartNotSupported),p.hasNativeMessage=!0):p.message?(m=new g(b,p.message),p.hasNativeMessage=!0):p.loadError?(m=new g(b,h.LoadDataErrorText),p.hasNativeMessage=!0):p.stallLoad?(m=new g(b,h.XMLLoadingText),p.hasNativeMessage=!0):(m=a.getChartData(FusionChartsDataFormats.JSON,!0),t=m.data,m.error instanceof Error?
(m=new g(b,h.InvalidXMLText),p.hasNativeMessage=!0,f||i.raiseEvent("dataxmlinvalid",{},p.fcObj,[p.fcObj.id])):(f||i.raiseEvent("dataloaded",{},p.fcObj,[p.fcObj.id]),m=o.init(b,t,a,j),p.previousDrawCount=p.drawCount,p.drawCount+=1,m.series.length===0?(m=new g(b,h.ChartNoDataText),p.hasNativeMessage=!0,f||i.raiseEvent("nodatatodisplay",{},p.fcObj,[p.fcObj.id])):(a.__state.dataReady=!0,p.hasNativeMessage=!1,delete p.message)));if(!m)m=new g(b,"Error rendering chart {0x01}"),p.hasNativeMessage=!0;m.chart=
m.chart||{};m.chart.renderTo=b;m.credits=m.credits||{};m.credits.enabled=l&&l.creditLabel===!0?!0:!1;if(d===!1)m.chart.animation=!1,(m.plotOptions||(m.plotOptions={}))&&(m.plotOptions.series||(m.plotOptions.series={})),m.plotOptions.series.animation=!1;if(b.style)m.chart.containerBackgroundColor=p.transparent?"transparent":a.options.containerBackgroundColor||"#ffffff";return o.draw(m,j)};var Da=i.HCstub=function(a,b,c,g){var a=a.chart,m=e(a.charttopmargin,g.charttopmargin,15),d=e(a.chartrightmargin,
g.chartrightmargin,15),f=e(a.chartbottommargin,g.chartbottommargin,15),p=e(a.chartleftmargin,g.chartleftmargin,15),h=m+f,t=p+d;c*=0.7;b*=0.7;h>c&&(m-=(h-c)*m/h,f-=(h-c)*f/h);t>b&&(p-=(t-b)*p/t,d-=(t-b)*d/t);b={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,renderTo:B,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:m,spacingRight:d,spacingBottom:f,
spacingLeft:p,marginTop:m,marginRight:d,marginBottom:f,marginLeft:p,borderRadius:0,plotBackgroundColor:"#FFFFFF",style:{},animation:!e(a.defaultanimation,1)?!1:{duration:e(a.animationduration,1)*500}},colors:["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:$a,enabled:!0},global:{},
labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:B,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:!e(a.animation,a.defaultanimation,1)?!1:{duration:e(a.animationduration,1)*1E3},states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?g.numberFormatter.percentValue(this.percentage):
this.point.displayValue}},point:{events:{}}},area:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},radar:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},areaspline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},line:{shadow:!0,states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},
scatter:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},bubble:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},spline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},pie:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:a.interactivelegend===oa?Wa:function(){this.slice()}}}},pie3d:{size:"80%",
allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:a.interactivelegend===oa?Wa:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:B,style:{}},symbols:[],title:{text:B,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:B},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},
text:B},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:B},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==db?this.value:B}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};if(a.palettecolors&&typeof a.palettecolors==="string")b.colors=a.palettecolors.split(ma);return g.hcJSON=b},pa=i.placeVerticalAxis=function(a,b,c,g,m,d,f,
p,h,t){var i=c[W],k=i.smartLabel,o,j,E,n,C=0,p=i.marginRightExtraSpace,q=i.marginLeftExtraSpace,s={},r={},v={},ba=a.plotLines,T=a.plotBands,i=b.verticalAxisValuesPadding,ha=!isNaN(b.fixedValuesPadding)?b.fixedValuesPadding:0,x=i-ha,w=b.verticalAxisValuesPadding,N=b.verticalAxisNamePadding,Z=b.verticalAxisNameWidth,Da=b.rotateVerticalAxisName,pa=a.offset?a.offset:0,la=0,A=0,ea=0,wa=0,ja=0,na=0,H=0,z,U,I,ua,i=2,H=f?p+8:q+4,fa=function(a,c){var e,g;if(a&&a.label&&R(a.label.text)!==void 0){I=a.label;
if(I.style&&I.style!==U)U=I.style,k.setStyle(U);o=k.getOriSize(a.label.text);g=(e=o.width)?e+2:0;if(a.isGrid){if(s[c]={width:e,height:o.height,label:I},wa<=g)wa=g,b.lYLblIdx=c}else a.isTrend&&(f&&I.textAlign===La||I.textAlign===Aa?(r[c]={width:e,height:o.height,label:I},ja=l(ja,g)):(v[c]={width:e,height:o.height,label:I},na=l(na,g)))}},V=function(b,c){var e,g=c?C:C+b;return g>0?(Da?(g<j.height&&(j=k.getSmartText(a.title.text,m,g)),e=j.height):(g<j.width&&(j=k.getSmartText(a.title.text,g,m)),e=j.width),
a.title.text=j.text,j.tooltext&&(a.title.originalText=j.tooltext),c?g-e+b:g-e):(a.title.text=B,0)},S=function(a,b,c){for(var e in a)a[e].label.x=b,a[e].label.y=c};z=0;for(ea=T.length;z<ea;z+=1)fa(T[z],z);z=0;for(ea=ba.length;z<ea;z+=1)fa(ba[z],z);if(a.title&&a.title.text!=B)U=a.title.style,k.setStyle(U),E=k.getOriSize(eb).height,Da?(j=k.getSmartText(a.title.text,m,d),C=j.height,n=E):(a.title.rotation=0,j=k.getSmartText(a.title.text,Z!==void 0?Z:d,m),C=j.width,n=20);na>0&&(A=na+w);h&&(g=e(g.chart.maxlabelwidthpercent,
0),g>=1&&g<=100&&(h=g*h/100,wa>h&&(wa=h)));la=l(ja,wa);la+=la?x+ha:0;C>0&&(la+=C+N+H);(function(){if(A+la>d){ua=A+la-d;if(A)if(w>=ua){w-=ua;return}else ua-=w,w=0;if(x+N>=ua)N>=ua?N-=ua:(x-=ua-N,N=0);else{ua-=x+N;N=x=0;if(na>20)if(ja>wa)if(na-ja>=ua){na-=ua;return}else if(ja-na>=ua){ja-=ua;return}else if(ja>na?(ua-=ja-na,ja=na):(ua-=na-ja,na=ja),2*(ja-wa)>=ua){na-=ua/2;ja-=ua/2;return}else ua-=2*(ja-wa),na=ja=wa;else if(na-20>=ua){na-=ua;return}else ua-=na-20,na=20;if(ja>wa)if(ja-wa>=ua){ja-=ua;return}else ua-=
ja-wa,ja=wa;C-n>=ua?C-=ua:(ua-=C-n,C=n,na>=ua?na=0:(ua-=na,na=0,C>=ua?C=0:(ua-=C,C=0,wa>=ua&&(wa-=ua,ja=wa))))}}})();ea=function(a,b){var c,e=0,g=b?na-2:na+a-2;if(na>0){for(z in v)if(I=v[z].label,v[z].width>g){if(I.style&&I.style!==U)U=I.style,k.setStyle(U);c=k.getSmartText(I.text,g,m,!0);I.text=c.text;c.tooltext&&(I.originalText=c.tooltext);v[z].height=c.height;e=Math.max(e,c.width)}else e=Math.max(e,v[z].width);return b?g-e+a:g-e}else{for(z in v)v[z].label.text=B;return 0}}(0,!0);ea=V(ea,!0);ea=
function(a){var b=0,c=Math.max(wa,ja)+a-2;if(c>0){for(z in s)if(I=s[z].label,s[z].width>c){if(I.style&&I.style!==U)U=I.style,k.setStyle(U);a=k.getSmartText(I.text,c,m,!0);I.text=a.text;a.tooltext&&(I.originalText=a.tooltext);s[z].height=a.height;b=Math.max(b,a.width)}else b=Math.max(b,s[z].width);for(z in r)if(I=r[z].label,r[z].width>c){if(I.style&&I.style!==U)U=I.style,k.setStyle(U);a=k.getSmartText(I.text,c,m,!0);I.text=a.text;a.tooltext&&(I.originalText=a.tooltext);r[z].height=a.height;b=Math.max(b,
a.width)}else b=Math.max(b,r[z].width);return c-b}else{for(z in s)s[z].label.text=B;for(z in r)r[z].label.text=B;return 0}}(ea);ea=V(ea);h=b.verticalAxisNamePadding-N;ea&&h&&(ea>h?(N+=h,ea-=h):(N+=ea,ea=0));h=b.verticalAxisValuesPadding-(x+ha);ea&&h&&(ea>h?(x+=h,ea-=h):(x+=ea,ea=0));h=b.verticalAxisValuesPadding-w;ea&&h&&(ea>h?(w+=h,ea-=h):(w+=ea,ea=0));na>0&&(A=na+w);la=l(ja,wa);la+=la?x+ha:0;C>0&&(la+=C+N+H);h=l(ja,wa);h+=h>0?x+ha:0;C>0?(Da?C<j.height&&(j=k.getSmartText(a.title.text,m,C)):(C<j.width&&
(j=k.getSmartText(a.title.text,C,m)),a.title.y=-((j.height-E)/2)),a.title.text=j.text,j.tooltext&&(a.title.originalText=j.tooltext),a.title.margin=h+N+H+(Da?C-E:C/2)):a.title.text=B;E=-(x+ha+pa+q+2);p=p+w+pa+2;H=l(ja,wa);a.labels.style&&(i=parseInt(a.labels.style.fontSize,10)*0.35);f?(na>0&&S(v,E,i),H>0&&(S(s,p,i),S(r,p,i))):(na>0&&S(v,p,i),H>0&&(S(s,E,i),S(r,E,i)));a.labels._textY=i;a.labels._righttX=p;a.labels._leftX=E;t?(c.chart.marginLeft+=f?A:la-t,c.chart.marginRight+=f?la-t:A):(c.chart.marginLeft+=
f?A:la,c.chart.marginRight+=f?la:A);return A+la},ta=i.titleSpaceManager=function(a,b,c,g){var m=b.chart,d=K(m.caption),f=K(m.subcaption),p=b=e(m.captionpadding,10),h=a[W].smartLabel,t=!1,i,l=0,k,o,j=0,E=0,C=0,n=0,q=a.title,s=a.subtitle,m=e(m.canvasborderthickness,1);b<m&&(b=m);if(d!==B)k=q.style,C=e(parseInt(k.fontHeight,10),parseInt(k.lineHeight,10),12),e(parseInt(k.fontSize,10),10);if(f!==B)o=s.style,n=e(parseInt(o.fontHeight,10),parseInt(o.lineHeight,10),12),e(parseInt(o.fontSize,10),10);if(C>
0||n>0){l=C+n+b;l>g?(j=l-g,t=!0,j<b?b-=j:(j-=b,b=0,n>j?(E=n-j+10,n=0):(j-=n,n=0,C>j&&(E=C-j),C=0))):E=g-l;if(C>0)h.setStyle(k),C+=E,i=h.getSmartText(d,c,C),E=C-i.height,C=i.height,q.text=i.text,q.height=i.height,i.tooltext&&(q.originalText=i.tooltext);if(n>0)h.setStyle(o),n+=E,c=h.getSmartText(f,c,n),E=n-c.height,n=c.height,s.text=c.text,s.height=c.height,c.tooltext&&(q.originalText=i.tooltext);t&&E>0&&(b+=r(p-b,E));l=C+n+b;a.chart.marginTop+=l}return l},la=i.stepYAxisNames=function(a,b,e,g,m,d){for(var f=
0,p=g.plotLines,h=[],i,t=g.plotLines.length,b=b[W].smartLabel,l=parseFloat(c(e.basefontsize,10)),k;f<t;f+=1)e=p[f],e.isGrid&&e.label&&e.label.text&&(h.push(e),e.value===0&&(i=h.length-1));if(t=h.length)if(g.labels.style?b.setStyle(g.labels.style):h[0].label&&h[0].label.style&&b.setStyle(g.labels.style),f=b.getOriSize("W").height,d||(f+=l*0.4),a/=t-1,a<f){d=Math.max(1,Math.ceil(f/a));for(f=a=i;f<t;f+=1){e=h[f];if(f===m){if((f-a)%d&&k)k.label.text="";a=m}if(e&&e.label)(f-a)%d?e.label.text=B:k=e}for(f=
a=i;f>=0;f-=1){e=h[f];if(f===m){if((a-f)%d&&k)k.label.text="";a=m}if(e&&e.label)(a-f)%d?e.label.text=B:k=e}}},T=i.placeHorizontalAxis=function(a,b,c,g,m,d,f){var p=c[W],h=g&&g.chart||{},i,t,k,o,j,E,C,n,q,s,r=0,ba=0,T=10,ha=1,x=0,w=x=0,N=0,Z=!1,Da=!1,pa=!1,la=e(h.labelstep,0),ea=e(h.xaxisminlabelwidth,0),na=b.labelDisplay,A=b.rotateLabels,ja=b.horizontalLabelPadding,wa=p.marginBottomExtraSpace;q=c.chart.marginLeft;var z=c.chart.marginRight,H=p.smartLabel,I=p.plotBorderThickness,ua=b.catCount,U=b.slantLabels,
fa=m/(a.max-a.min),V=0,S=0,w={w:0,h:0},$=g&&g.chart||{},g=e($.updateinterval,$.refreshinterval)*1E3,$=$.datastreamurl,P=Boolean(this.realtimeEnabled&&g&&$!==void 0);if(a.labels.style)E=a.labels.style,H.setStyle(E),n=H.getOriSize("W"),T=n.height,C=n.width+4,s=H.getOriSize("WWW").width+4;var aa,K,xa,J=[],g=[],L=0,Q=0,M,ia,ga,X,$=b.horizontalAxisNamePadding;K=0;var da=b.staggerLines,qa=V,ma=!1,oa=!1;if(a.title&&a.title.text!=B)E=a.title.style,H.setStyle(E),x=H.getOriSize("W").height,a.title.rotation=
0,o=H.getSmartText(a.title.text,m,d),ba=o.height;q!=parseInt(h.chartleftmargin,10)&&(i=!0);z!=parseInt(h.chartrightmargin,10)&&(xa=!0);h.canvaspadding!==void 0&&h.canvaspadding!==""&&(oa=!0);K=m-f;switch(na){case "none":Z=pa=!0;A&&(r=U?300:270,n=T,T=C,C=n);break;case "rotate":r=U?300:270;n=T;T=C;C=n;Z=!0;break;case "stagger":Da=Z=!0;f=Math.floor((d-x)/T);f<da&&(da=f);break;default:A&&(r=U?300:270,n=T,T=C,C=n)}p.isBar&&(Z=!0);h=0;f=a.plotLines;if(typeof c._FCconf.isXYPlot===Ka&&!p.isBar){for(M=f.length;h<
M;h+=1)(t=f[h])&&(t.isGrid?J.push(t):t.isTrend&&g.push(t));A=a.plotBands;h=0;for(M=A.length;h<M;h+=1)(t=A[h])&&g.push(t);A=J.length-1;M=J.length;Da&&(da>M?da=M:da<2&&(da=2));if(M){a.scroll&&a.scroll.viewPortMin&&a.scroll.viewPortMax?(k=a.scroll.viewPortMin,aa=a.scroll.viewPortMax,xa=i=!1):(k=a.min,aa=a.max);h=(J[A].value-J[0].value)*fa;ia=h/(ua-1);ga=(J[0].value-k)*fa;X=(aa-J[A].value)*fa;na==="auto"?ia<s&&(r=U?300:270,n=T,T=C,C=n,Z=!0):na==="stagger"&&(ia*=da);this.defaultSeriesType!=="line"&&(this.defaultSeriesType===
"area"?p.drawFullAreaBorder&&(I>ga&&(k=a.min-=I/(2*fa),ga+=(J[0].value-k)*fa),I>X&&(aa=a.max+=I/(2*fa),X+=(aa-J[A].value)*fa)):(I>ga&&(k=a.min-=I/(2*fa),ga+=(J[0].value-k)*fa),I>X&&(aa=a.max+=I/(2*fa),X+=(aa-J[A].value)*fa)));C<ea&&(C=ea);ha=!Da&&!pa?r?Math.max(1,la,Math.ceil(T/ia)):Math.max(1,la,Math.ceil(C/ia)):Math.max(1,la);if(p.x)p.x.stepValue=ha;ia*=ha;q=(ga+q)*2;if((j=f[0].label)&&j.text)j.style&&H.setStyle(j.style),s=r===270?Math.min(ia,H.getOriSize(j.text).height+4):Math.min(ia,H.getOriSize(j.text).width+
4),s>q&&(pa||(L=(s-q)/2),i||(oa&&(L=0),ia-=L/(ua-1),n=ia*(ua-1),fa=ia,q=(h-n)/fa,aa=a.max+=q,k=a.min-=q,L=0,h=n,ga=(J[0].value-k)*fa,X=(aa-J[A].value)*fa));q=(X+z)*2;if((j=f[A].label)&&j.text)j.style&&H.setStyle(j.style),s=r===270?Math.min(ia,H.getOriSize(j.text).height+4):Math.min(ia,H.getOriSize(j.text).width+4),s>q&&(pa||(Q=(s-q)/2),xa||(oa&&(Q=0),ia-=Q/(ua-1),n=ia*(ua-1),fa=ia,q=(h-n)/fa,Q=0,h=n,ga=(J[0].value-k)*fa,X=(aa-J[A].value)*fa));h=L+Q;if(h>0){K>h?(z=(z=Q*m/(Q+m))?z+4:0,c.chart.marginRight+=
z,m-=z,z=(z=L*m/(L+m))?z+4:0,c.chart.marginLeft+=z,m-=z,fa=m/(a.max-a.min)):L<Q?K>=Q&&xa?(z=(z=Q*m/(Q+m))?z+4:0,c.chart.marginRight+=z,m-=z,fa=m/(a.max-a.min)):i&&(z=(z=L*m/(L+m))?z+4:0,c.chart.marginLeft+=z,m-=z,fa=m/(a.max-a.min)):K>=L&&i?(z=(z=L*m/(L+m))?z+4:0,c.chart.marginLeft+=z,m-=z,fa=m/(a.max-a.min)):xa&&(z=(z=Q*m/(Q+m))?z+4:0,c.chart.marginRight+=z,m-=z,fa=m/(a.max-a.min));h=(J[A].value-J[0].value)*fa;ia=h/(ua-1);Da&&(ia*=da);ha=!Da&&!pa?r?Math.max(1,la,Math.ceil(T/ia)):Math.max(1,la,Math.ceil(C/
ia)):Math.max(1,la);if(p.x)p.x.stepValue=ha;ia*=ha}for(k=0;k<M;k+=1){t=J[k];if(k%ha&&t.label){if(t.stepped=!0,t.label.style=a.steppedLabels.style,!P)continue}else t.stepped=!1,t.label.style=a.labels.style;if(t&&t.label&&R(t.label.text)!==void 0){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);if(r&&pa)i=H.getOriSize(j.text),w.w=l(w.w,i.width+4),w.h=l(w.h,i.height);else if(!pa)i=r||Da?H.getOriSize(j.text):H.getSmartText(j.text,ia-4,d,Z),w.w=l(w.w,i.width+4),w.h=l(w.h,i.height)}}}k=0;for(M=
g.length;k<M;k+=1)if((t=g[k])&&t.label&&R(t.label.text)!==void 0){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);i=H.getOriSize(j.text);j.verticalAlign===sa?V=l(V,i.height):S=l(S,i.height)}a.scroll&&a.scroll.enabled&&!r&&!pa&&(q=w.w/2,c.chart.marginLeft<q&&(z=q-c.chart.marginLeft,K>z&&(m-=z,K-=z,c.chart.marginLeft+=z)),c.chart.marginRight<q&&(z=q-c.chart.marginRight,K>z&&(m-=z,K-=z,c.chart.marginRight+=z)))}else{var la={},Ca,na=Q=0,I=oa=null,ua={},ma=!0,fa=m/(a.max-a.min),ea=function(b,
e,g){var d,m,u,h,f,p;p=b.plotObj;f=b.labelTextWidth;if(!f){j=p.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);f=H.getOriSize(j.text).width+4;b.oriWidth=f;f>Ca&&(f=Ca);b.labelTextWidth=f;b.leftEdge=p.value*fa-f/2;b.rightEdge=p.value*fa+f/2;if(g)f=Math.min(f,2*(t.value-a.min)*fa+c.chart.marginLeft),b.labelTextWidth=f}if(typeof e!==Ka){g=e.plotObj;j=g.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);e.oriWidth?u=e.oriWidth:(u=H.getOriSize(j.text).width+4,e.oriWidth=u);u>Ca&&(u=Ca);e.labelTextWidth=
u;e.leftEdge=g.value*fa-u/2;e.rightEdge=g.value*fa+u/2;d=p.value*fa;m=d+f/2;h=g.value*fa;u=h-u/2;if(u<m)if(d+C<h-C)m-=u,d=h-d,b.labelTextWidth=m>d?Math.min(f,d):Math.max(C,f-m/2),e.labelTextWidth=2*(d-b.labelTextWidth/2),b.leftEdge=p.value*fa-b.labelTextWidth/2,b.rightEdge=p.value*fa+b.labelTextWidth/2,e.leftEdge=g.value*fa-e.labelTextWidth/2,e.rightEdge=g.value*fa+e.labelTextWidth/2;else return e.labelTextWidth=0,g.label.text=B,!1}else if(g)f=Math.min(f,2*(a.max-t.value)*fa+c.chart.marginRight),
b.labelTextWidth=f,b.leftEdge=p.value*fa-f/2,b.rightEdge=p.value*fa+f/2;b.nextCat=e;return!0};Da?da>M?da=M:da<2&&(da=2):da=1;for(M=f.length;h<M;h+=1)if((t=f[h])&&t.label&&typeof t.label.text!==Ka)t.isGrid?(L={plotObj:t},t.isCat&&(A=h%da,la[A]||(la[A]=[]),oa?(I=L,la[A].push(I)):(I=oa=L,la[A].push(oa))),J.push(L)):t.isTrend&&g.push({plotObj:t});A=a.plotBands;h=0;for(M=A.length;h<M;h+=1)(t=A[h])&&t.isTrend&&t.label&&typeof t.label.text!==Ka&&g.push({plotObj:t});if(J.length)if(!pa&&!r)if(p.distributedColumns){h=
0;for(M=J.length;h<M;h+=1)if(k=J[h],xa=h%da,t=k.plotObj,t.label&&t.isCat){h-da>=0?(i=J[h-da],xa=i.plotObj.value*fa+i.plotObj._weight*fa/2):(i=null,xa=a.min*fa-q);h+da<M?(n=J[h+da],n=n.plotObj.value*fa-n.plotObj._weight*fa/2):(n=null,n=a.max*fa+z);j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);L=t.value*fa;K=L-t._weight*fa/2;L+=t._weight*fa/2;da>1?(i=K-xa,xa=L+n,xa=L-K+Math.min(i,xa)):xa=L-K;j=t.label;j.style&&j.style!==E&&H.setStyle(j.style);xa<C&&C<H.getOriSize(j.text).width?(t.label.text=
B,k.labelTextWidth=0):(k.labelTextWidth=xa,i=H.getSmartText(j.text,xa-4,d,Z),xa=i.width+4,k.labelTextWidth=xa,w.h=Math.max(w.h,i.height))}}else{M=J.length;A=J.length-1;(h=(J[A].plotObj.value-J[0].plotObj.value)*fa)?(Ca=h*0.1,P=Math.max(h*0.2,h/M)):P=Ca=m;for(k in la){h=0;for(s=la[k].length;h<s;){for(L=h+1;!ea(la[k][h],la[k][L]);)L+=1;h=L}}oa&&(na=(oa.plotObj.value-a.min)*fa+q-oa.labelTextWidth/2);t=J[0].plotObj;if(!oa||t!==oa.plotObj){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);s=H.getOriSize(j.text).width+
4;L=(t.value-a.min)*fa+q;oa&&(h=na-L,s=h<s&&h>C/2?h*2:0);J[0].labelTextWidth=s;s>0&&(n=L-s/2);n<na&&(na=n)}if(I)s=I.labelTextWidth,Q=(a.max-I.plotObj.value)*fa+z-s/2;t=J[A].plotObj;if(!I||t!==I.plotObj){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);s=H.getOriSize(j.text).width+4;L=(a.max-t.value)*fa+z;I&&(h=L-Q,s=h<s&&h>C/2?h*2:0);J[A].labelTextWidth=s;s>0&&(n=L-s/2);n<Q&&(Q=n)}L=na<0?-na:0;Q=Q<0?-Q:0;h=L+Q;if(h>0)for(k in K>h?(z=(z=Q*m/(Q+m))?z+4:0,c.chart.marginRight+=z,m-=z,z=(z=L*
m/(L+m))?z+4:0,c.chart.marginLeft+=z,m-=z,fa=m/(a.max-a.min)):L<Q?K>=Q&&xa?(z=(z=Q*m/(Q+m))?z+4:0,c.chart.marginRight+=z,m-=z,fa=m/(a.max-a.min)):i&&(z=(z=L*m/(L+m))?z+4:0,c.chart.marginLeft+=z,m-=z,fa=m/(a.max-a.min)):K>=L&&i?(z=(z=L*m/(L+m))?z+4:0,c.chart.marginLeft+=z,m-=z,fa=m/(a.max-a.min)):xa&&(z=(z=Q*m/(Q+m))?z+4:0,c.chart.marginRight+=z,m-=z,fa=m/(a.max-a.min)),z=c.chart.marginRight,q=c.chart.marginLeft,h=(J[A].plotObj.value-J[0].plotObj.value)*fa,Ca=h*0.1,P=Math.max(h*0.2,h/M),la){h=0;for(s=
la[k].length;h<s;){for(L=h+1;!ea(la[k][h],la[k][L],!0);)L+=1;h=L}k+=1}h=0;for(M=J.length;h<M;h+=1)if(k=J[h],xa=h%da,t=k.plotObj,t.label)if(t.isCat)k.labelTextWidth&&(ua[xa]=k);else{n=(i=ua[xa])?i.nextCat:la[xa]?la[xa][0]:null;i=null;if(h>=da){xa=h-da;for(i=J[xa];!i.labelTextWidth;)if(xa>=da)xa-=da,i=J[xa];else{i=null;break}}xa=i?i.rightEdge:a.min*fa-q;n=n?n.leftEdge:a.max*fa+z;j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);s=H.getOriSize(j.text).width+4;K=t.value*fa-s/2;if(p.isBar&&h==
M-1&&i){if(xa>K)i.plotObj.label.text=B,i.labelTextWidth=0,xa=i.leftEdge}else if(xa>K||n<K+s){t.label.text=B;k.labelTextWidth=0;continue}xa=Math.max(xa,K);L=t.value*fa;xa=2*Math.min(L-xa,n-L);xa.toFixed&&(xa=xa.toFixed(2));j=t.label;j.style&&j.style!==E&&H.setStyle(j.style);xa<C&&C<H.getOriSize(j.text).width?(t.label.text=B,k.labelTextWidth=0):(k.labelTextWidth=xa,i=H.getSmartText(j.text,xa-4,d,Z),xa=i.width+4,k.labelTextWidth=xa,k.leftEdge=L-xa/2,k.rightEdge=L+xa/2,w.h=Math.max(w.h,i.height))}i=z=
xa=q=null;h=0;for(M=J.length;h<M;h+=1)if(k=J[h],t=k.plotObj,xa=h%da,t.isCat&&k.labelTextWidth){i=z=null;L=t.value*fa;if(h>=da){xa=h-da;for(i=J[xa];!i.labelTextWidth;)if(xa>da)xa-=da,i=J[xa];else{i=null;break}}i=i?L-i.rightEdge:L-a.min*fa+c.chart.marginLeft;if(h+da<M){q=h+da;for(z=J[q];!z.labelTextWidth;)if(q+da<M-1)q+=da,z=J[q];else{z=null;break}}xa=z?z.leftEdge-L:a.max*fa+c.chart.marginRight-L;xa=Math.min(i,xa)*2;xa>P&&(xa=P);if(xa>k.oriWidth)xa=k.oriWidth;k.labelTextWidth=xa;j=t.label;j.style&&
j.style!==E&&H.setStyle(j.style);i=H.getSmartText(j.text,xa-4,d,Z);k.labelTextWidth=i.width+4;w.h=Math.max(w.h,i.height);k.rightEdge=L+k.labelTextWidth/2}}else if(r){h=0;for(M=J.length;h<M;h+=1)if((t=J[h].plotObj)&&t.label&&t.label.text){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);k=1;if(h+k<M)for(z=J[k+h].plotObj;z&&(z.value-t.value)*fa<C;)if(t.isCat){if(z.label){z.label.text=B;k+=1;if(k+h>=M-1)break;z=f[k+h].plotObj}}else if(z.isCat){t.label.text=B;t=z;h+=k-1;j=t.label;if(j.style&&
j.style!==E)E=j.style,H.setStyle(E);break}w.w=Math.max(w.w,H.getOriSize(j.text).width+4)}}k=0;for(M=g.length;k<M;k+=1)if((t=g[k].plotObj)&&t.label&&R(t.label.text)!==void 0){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);i=H.getOriSize(j.text);j.verticalAlign===sa?V=l(V,i.height):S=l(S,i.height)}}if(pa){if(K=T,r)K=w.w}else K=r?w.w:Da?da*T:w.h;K>0&&(qa+=ja+K);ba>0&&(qa+=ba+$);w=ja-4;qa=S+qa+2;n=0;qa>d&&(h=qa-d,$>h?($-=h,h=0):(h-=$,$=0,w>h?(w-=h,differnece=0):(h-=w,w=0),ja=w+4),S>h?(S-=h,
h=0):(S>0&&(h-=S,S=0),h>0&&(V>h?(V-=h,h=0):(V>0&&(h-=V,V=0),h>0&&((n=ba-x)>h?(ba-=h,h=0):(h-=n,ba=x,h>0&&((n=K-T)>h?(K-=h,h=0):(h-=n,K=T,h>0&&(h-=ba+$,ba=0,h>0&&(h-=K,K=0,h>0&&(ja-=h)))))))))));ja+=wa;var z=p.is3d?-c.chart.xDepth:0,d=K+ja,ka,qa=z;q=T*0.5;x=T+ja;M=J.length;w=0;if(ma)if(r){ia=Aa;ka=U?ja+8:ja+4;M=J.length;for(k=0;k<M;k+=1)if((t=J[k].plotObj)&&t.label&&R(t.label.text)!==void 0){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);h=1;i=H.getSmartText(j.text,K-4,C,Z);j.text=i.text;
i.tooltext&&(j.originalText=i.tooltext);qa=z+q/2;j.y=ka;j.x=qa;j.rotation=r;j.textAlign=ia;w+=1}}else{ma=K;ia=v;ka=x;for(k=0;k<M;k+=ha)if((t=J[k].plotObj)&&t.label&&R(t.label.text)!==void 0){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);if(!pa)i=H.getSmartText(j.text,J[k].labelTextWidth-4,ma,Z),j.text=i.text,i.tooltext&&(j.originalText=i.tooltext),Da&&(ka=x+w%da*T);j.y=ka;j.x=qa;j.rotation=r;j.textAlign=ia;w+=1}}else{r?(ma=ia,h=K-4,ia=Aa,ka=U?ja+8:ja+4):Da?(ma=T,h=ia-4,ia=v):(ma=K,h=ia-
4,ia=v,ka=x);for(k=0;k<M;k+=ha)if((t=J[k])&&t.label&&R(t.label.text)!==void 0){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);if(!pa)i=H.getSmartText(j.text,h,ma,Z),j.text=i.text,i.tooltext&&(j.originalText=i.tooltext),Da&&(ka=x+w%da*T),r&&(qa=z+q/2);j.y=ka;j.x=qa;j.rotation=r;j.textAlign=ia;w+=1}b._labelY=x;b._labelX=z;b._yShipment=ka;b._isStagger=Da;b._rotation=r;b._textAlign=ia;b._adjustedPx=q/2;b._staggerLines=da;b._labelHeight=T}M=g.length;for(k=r=b=0;k<M;k+=1)if((t=g[k].plotObj?g[k].plotObj:
g[k])&&t.label&&R(t.label.text)!==void 0){j=t.label;if(j.style&&j.style!==E)E=j.style,H.setStyle(E);j.verticalAlign===sa?(i=H.getSmartText(j.text,m,V,!0),r=Math.max(r,i.height),j.text=i.text,i.tooltext&&(j.originalText=i.tooltext),j.y=d+H.getOriSize(j.text).height,j.x=qa):(i=H.getSmartText(j.text,m,S,!0),b=Math.max(b,i.height),j.text=i.text,i.tooltext&&(j.originalText=i.tooltext),j.y=-(S-H.getOriSize("W").height+ja+2))}if(ba>0)H.setStyle(a.title.style),o=H.getSmartText(a.title.text,m,ba),a.title.text=
o.text,o.tooltext&&(a.title.originalText=o.tooltext),a.title.margin=d+r+$;qa=r;if(K>0)p.horizontalAxisHeight=ja+K-wa,qa+=p.horizontalAxisHeight;ba>0&&(qa+=N=ba+$);c.chart.marginBottom+=qa;b>0&&(c.chart.marginTop+=b,qa+=b);if(a.opposite){a.title.margin-=K-(o&&o.height||0)+ja;qa-=N;c.chart.marginTop+=qa;c.chart.marginBottom-=qa;c.xAxis.opposite=1;M=f.length;for(h=0;h<M;h+=1)if((t=f[h])&&t.isGrid&&(j=t.label)&&j.text!==void 0)j.textAlign=La,j.y-=ka+ja+4}return qa},ja=i.configureLegendOptions=function(a,
b,c,g,d){var g=a.legend,f=a.chart,p=f.paletteIndex,t=f.is3D?ba.chart3D:ba.chart2D,i=f.useRoundEdges,j=e(b.legendiconscale,1),k=(parseInt(g.itemStyle.fontSize,10)||10)+1,o=a.chart.defaultSeriesType,E=3;if(j<=0||j>5)j=1;g.padding=4;k<=0&&(k=1);d-=8;k*=j;E*=j;k=Math.min(k,d);k<=0&&(E=k=0);g.symbolWidth=k;g.symbolPadding=E;g.textPadding=4;g.legendHeight=d=k+2*E;g.rowHeight=Math.max(parseInt(g.itemStyle.lineHeight,10)||12,d);c?(g.align=Aa,g.verticalAlign="middle",g.layout="vertical"):g.x=(f.marginLeft-
f.spacingLeft-f.marginRight+f.spacingRight)/2;c=h(b.legendbordercolor,w[t.legendBorderColor][p]);d=e(b.legendborderalpha,100);f=e(b.legendbgalpha,100);g.backgroundColor=s(h(b.legendbgcolor,w[t.legendBgColor][p]),f);g.borderColor=s(c,d);g.borderWidth=e(b.legendborderthickness,!i||b.legendbordercolor?1:0);g.shadow=Boolean(e(b.legendshadow,1));if(g.shadow)g.shadow={enabled:g.shadow,opacity:l(d,f)/100};g.reversed=Boolean(e(b.reverselegend,0));if(/^pie|pie3d$/.test(o))g.reversed=!g.reversed;g.style={padding:4};
Boolean(e(b.interactivelegend,1))?g.symbolStyle={_cursor:"hand",cursor:"pointer"}:(a.legend.interactiveLegend=!1,g.itemStyle.cursor="default",g.itemHoverStyle={cursor:"inherit"});g.borderRadius=e(b.legendborderradius,i?3:0);g.legendAllowDrag=Boolean(e(b.legendallowdrag,0));g.title.text=K(aa(b.legendcaption,B));g.legendScrollBgColor=z(h(b.legendscrollbgcolor,w.altHGridColor[a.chart.paletteIndex]));g.legendScrollBarColor=h(b.legendscrollbarcolor,c);g.legendScrollBtnColor=h(b.legendscrollbtncolor,c);
g.title.style=U({fontWeight:"bold"},g.itemStyle)},Ga=i.placeLegendBlockRight=function(a,b,c,g,d){ja(a,b.chart,!0,d,c);var f=0,h=a.series,p,t=a[W],i=t.smartLabel,j=a.legend,k,l=j.textPadding,o=j.title.padding,E=j.symbolWidth+2*j.symbolPadding,n=g*2,C=0,b=e(b.chart.legendpadding,7)+j.borderWidth/2+e(b.chart.canvasborderthickness,1),q=2*j.padding,s={width:q,height:q},r=!1,ba=[];c-=q;d&&(h=h&&h[0]&&h[0].data);if(typeof h===Ka||typeof h.length===Ka)return 0;else{d=h.length;for(f=0;f<d;f+=1)if((p=h[f])&&
p.showInLegend!==!1)p.__i=f,ba.push(p);ba.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});d=ba.length}k=c-E-2-l;k<0&&(k=0);i.setStyle(j.itemStyle);j.reversed&&ba.reverse();for(f=0;f<d;f+=1)if(p=ba[f],r=!0,p._legendX=0,p._legendY=s.height,k===0)s.height+=E,p.name=B;else{h=i.getSmartText(p.name,k,n);p.name=h.text;h.tooltext&&(p.originalText=h.tooltext);if(h.height<E)p._legendTestY=(E-h.height)/2;s.height+=Math.max(h.height,E);C=Math.max(h.width,C)}if(r){j.width=C+E+2+l+q;if(j.title.text!==
B){i.setStyle(j.title.style);h=i.getSmartText(j.title.text,c,n);j.title.text=h.text;h.tooltext&&(j.title.originalText=h.tooltext);f=h.width+q;if(j.width<f)j.initialItemX=(f-j.width)/2,j.width=f;j.initialItemY=h.height+o;s.height+=j.initialItemY}j.height=j.totalHeight=s.height;if(j.height>g)j.height=g,j.scroll.enabled=!0,j.scroll.flatScrollBars=t.flatScrollBars,j.scroll.scrollBar3DLighting=t.scrollBar3DLighting,j.width+=(j.scroll.scrollBarWidth=10)+(j.scroll.scrollBarPadding=2);b=Math.min(j.width+
b,c);a.chart.marginRight+=b;return b}else return j.enabled=!1,0},n=i.placeLegendBlockBottom=function(a,b,c,g,d){ja(a,b.chart,!1,d,c);var f=0,h=a.series,p,t=a[W],i=t.smartLabel,j=a.legend,k,l=j.textPadding;p=j.title.padding;var o,E=j.symbolPadding;k=j.legendHeight;var n=b.chart;o=0;var C=g*2,q=j.rowHeight,s=[],r=e(n.minimisewrappinginlegend,0),n=e(parseInt(n.legendnumcolumns,10),0),ba=0,v=0,T=0,w=f=0,ha=2*j.padding,b=e(b.chart.legendpadding,7)+j.borderWidth/2+1,x={width:ha,height:ha},z=!1,N,Z=[];n<
0&&(n=0);c-=ha;i.setStyle(j.itemStyle);f=i.getOriSize(eb).height;b=Math.min(b,g-f-8);g-=b;d&&(h=h&&h[0]&&h[0].data);if(typeof h===Ka||typeof h.length===Ka)return 0;else{d=h.length;for(f=0;f<d;f+=1)if((N=h[f])&&N.showInLegend!==!1)N.__i=f,Z.push(N);Z.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});d=Z.length}i.setStyle(j.itemStyle);for(f=0;f<d;f+=1)z=!0,h=i.getOriSize(Z[f].name),ba=Math.max(ba,h.width),v+=h.width,T+=1;f=v/T;if(z){f+=k+2+l;ba+=k+2+l;n>0&&T<n&&(n=T);n>0&&(w=c/n)>
f?w>ba&&(w=ba):c>ba&&(r||f*1.5>ba)?(n=Math.floor(c/ba),T<n&&(n=T),w=ba):c>=2*f?(n=Math.floor(c/f),T<n&&(n=T),w=Math.floor(c/n),w>ba&&(w=ba)):(n=1,w=c);j.itemWidth=w;k=w-k-2-l;k<0&&(E=k=l=0);j.symbolPadding=E;j.textPadding=l;j.width=w*n+ha;if(j.title.text!==B){i.setStyle(j.title.style);h=i.getSmartText(j.title.text,c,C);j.title.text=h.text;h.tooltext&&(j.title.originalText=h.tooltext);o=h.width+ha;if(j.width<o)j.initialItemX=(o-j.width)/2,j.width=o;j.initialItemY=o=h.height+p}i.setStyle(j.itemStyle);
l=0;j.reversed&&Z.reverse();for(f=0;f<d;f+=1){p=Z[f];if(k===0)s[l]=!0,p.name=B,c=1;else{h=i.getSmartText(p.name,k,C);p.name=h.text;for(h.tooltext&&(p.originalText=h.tooltext);s[l]===!0;)l+=1;E=h.height/q;r=l;for(c=0;c<E;c+=1,r+=n)s[r]=!0;if(h.height<q)p._legendTestY=(q-h.height)/2}E=parseInt(l/n,10);h=l%n;p._legendX=h*w;p._legendY=E*q+ha;p._legendH=c*q;l+=1}x.height+=Math.ceil(s.length/n)*q+o;j.height=j.totalHeight=x.height;j.rowHeight=q;j.legendNumColumns=n;if(j.height>g)j.height=g,j.scroll.enabled=
!0,j.scroll.flatScrollBars=t.flatScrollBars,j.scroll.scrollBar3DLighting=t.scrollBar3DLighting,j.width+=(j.scroll.scrollBarWidth=10)+(j.scroll.scrollBarPadding=2);b+=j.height;a.chart.marginBottom+=b;return b}else return j.enabled=!1,0},wa=function(a,b){return a.value-b.value},ea=i.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var e=b.text,g=a[W].smartLabel,d=2*Math.min(a.chart.marginTop,a.chart.marginBottom)+c,f=c+a.chart.marginTop+a.chart.marginBottom;b.style&&g.setStyle(b.style);e=g.getOriSize(e);
if(b.centerYAxisName===void 0)b.centerYAxisName=!0;if(b.rotation=="0"){if(e.height>d)b.y=(f/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1}else if(e.width>d)b.y=f/2-(c/2+a.chart.marginTop),b.centerYAxisName=!1}},na=i.adjustVerticalCanvasMargin=function(a,b,c,g){var d=b.chart,f=b=0,h=0,p=e(d.canvastopmargin,0),d=e(d.canvasbottommargin,0),t=p/(p+d),i=a.chart.marginTop,j=a.chart.marginBottom;d>j&&(b+=d-j);p>i&&(b+=p-i);b>c?p>i&&d>j?(f=c*t,h=c*(1-t)):p>i?f=c:h=c:b>0&&(d>j&&(h=d-j),p>i&&(f=p-i));f&&
(a.chart.marginTop+=f);h&&(a.chart.marginBottom+=h,g&&g.title&&(g.title.margin+=h));return f+h},ua=i.adjustHorizontalCanvasMargin=function(a,b,c,g,d){var f=b.chart,b=e(f.canvasleftmargin,0),f=e(f.canvasrightmargin,0),h=b/(b+f),p=0,t=a.chart.marginLeft,i=a.chart.marginRight,j=0,k=0;b>t&&(p+=b-t);f>i&&(p+=f-i);p>c?b>t&&f>i?(j=c*h,k=c*(1-h)):f>i?k=c:j=c:p>0&&(b>t&&(j=b-t),f>i&&(k=f-i));j&&(a.chart.marginLeft+=j,g&&g.title&&(g.title.margin+=j));k&&(a.chart.marginRight+=k,d&&d.title&&(d.title.margin+=
k));return k+j};J("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",draw:function(a,b){var c=this,e=c.renderer,g=c.chartInstance.jsVars,d="reinit",f=new Date;c.drawingLatency=c.drawingLatency||0;if(!e)g._lastpaper&&(g._lastpaper=g._lastpaper.dispose()),d="init",e=c.renderer=new J("renderer."+c.rendererId);return e[d](c,a,function(){g._lastpaper=e;c.drawingLatency=new Date-f;b&&b.apply(this,arguments)})},init:function(a,b,c){var g=this.chartInstance||c,d=g.jsVars,c=d._reflowData||
(d._reflowData={}),f=d._reflowClean,h,p;this.dataObj=b=U({},b);p=b.chart=b.chart||b.graph||b.map||{};delete b.graph;delete b.map;if(c&&!this.stateless)h=c.hcJSON,delete c.hcJSON,U(this,c,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),c.hcJSON=h;this.containerElement=a;this.config={};this.smartLabel=new Ra(g.id,document.getElementsByTagName("body")[0]||a,e(p.useellipseswhenoverflow,p.useellipsewhenoverflow,1));this.linkClickFN=Na(b,g);this.numberFormatter=new gb(b.chart,this);
if(!this.standaloneInit)return new i.createDialog(a,d.msgStore.ChartNotSupported);a=this.chart(a.offsetWidth||parseFloat(a.style.width),a.offsetHeight||parseFloat(a.style.height),g);c&&!this.stateless&&(c.hcJSON&&U(a,c.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),f&&this.cleanedData&&(this.cleanedData(this,f),this.cleanedData(c,f)));return a},chart:function(b,g){var u;var d=this.name,p=this.dataObj,m=p.chart,t,i,j,k,o,E,n=this.defaultSeriesType,C,q,r,v,T,ha,x,N;t=Da(p,
b,g,this);N=t.chart;x=t.xAxis;C=t[W];this.postHCJSONCreation&&this.postHCJSONCreation.call(this,t);t.labels.smartLabel=E=C.smartLabel=this.smartLabel;C.width=b;C.height=g;q=t.plotOptions;C.isDual=this.isDual;C.numberFormatter=this.numberFormatter;C.axisGridManager=new Va(n,m);N.is3D=i=C.is3d=/3d$/.test(n);N.isBar=k=C.isBar=this.isBar;j=/^pie/.test(n);ha=m.useroundedges==1;T=i?ba.chart3D:ba.chart2D;N.events.click=t.plotOptions.series.point.events.click=this.linkClickFN;N.defaultSeriesType=n;var Z=
m.palette>0&&m.palette<6?m.palette:e(this.paletteIndex,1);Z-=1;N.paletteIndex=Z;N.usePerPointLabelColor=m.colorlabelsfromplot==da;N.useRoundEdges=ha&&!i&&!this.distributedColumns&&this.defaultSeriesType!=="pie";if(h(m.clickurl)!==void 0)N.link=m.clickurl,N.style.cursor="pointer",t.plotOptions.series.point.events.click=function(){N.events.click.call({link:m.clickurl})};var pa=h(m.basefont,"Verdana"),la=c(m.basefontsize,10),H=h(m.basefontcolor,w[T.baseFontColor][Z]);r=h(m.outcnvbasefont,pa);var ja=
c(m.outcnvbasefontsize,la),ea=ja+Ca,na=h(m.outcnvbasefontcolor,H).replace(/^#?([a-f0-9]+)/ig,"#$1"),wa;la+=Ca;H=H.replace(/^#?([a-f0-9]+)/ig,"#$1");C.trendStyle=C.outCanvasStyle={fontFamily:r,color:na,fontSize:ea};o=A(C.trendStyle);C.inCanvasStyle={fontFamily:pa,fontSize:la,color:H};wa=A(C.inCanvasStyle);C.divlineStyle={fontFamily:pa,fontSize:la,color:H,lineHeight:wa};x.labels.style={fontFamily:r,fontSize:ea,lineHeight:o,color:na};x.steppedLabels.style={fontFamily:r,fontSize:ea,lineHeight:o,color:na,
visibility:"hidden"};t.yAxis[0].labels.style={fontFamily:r,fontSize:ea,lineHeight:o,color:na};t.yAxis[1].labels.style={fontFamily:r,fontSize:ea,lineHeight:o,color:na};t.legend.itemStyle={fontFamily:r,fontSize:ea,lineHeight:o,color:na};t.legend.itemHiddenStyle={fontFamily:r,fontSize:ea,lineHeight:o};t.plotOptions.series.dataLabels.style={fontFamily:pa,fontSize:la,lineHeight:wa,color:H};t.plotOptions.series.dataLabels.color=t.plotOptions.series.dataLabels.style.color;t.tooltip.style={fontFamily:pa,
fontSize:la,lineHeight:wa,color:H};t.title.style={fontFamily:r,color:na,fontSize:ja+3+Ca,fontWeight:e(m.captionfontbold)===0?"normal":"bold"};A(t.title.style);t.subtitle.style={fontFamily:r,color:na,fontSize:ja+e(this.subTitleFontSizeExtender,1)+Ca,fontWeight:R(this.subTitleFontWeight,"bold")};A(t.subtitle.style);x.title.style={fontFamily:r,color:na,fontSize:ea,fontWeight:e(m.subcaptionfontbold)===0?"normal":"bold"};pa=A(x.title.style);t.yAxis[0].title.style={fontFamily:r,color:na,fontSize:ea,lineHeight:pa,
fontWeight:"bold"};t.yAxis[1].title.style={fontFamily:r,color:na,fontSize:ea,lineHeight:pa,fontWeight:"bold"};N.overlapColumns=e(m[k&&"overlapbars"||"overlapcolumns"],0);t.orphanStyles={defaultStyle:{style:U({},C.inCanvasStyle)},connectorlabels:{style:U({},t.plotOptions.series.dataLabels)},vyaxisname:{style:U({},t.yAxis[0].title.style)}};this.parseStyles(t);delete t.xAxis.labels.style.backgroundColor;delete t.xAxis.labels.style.borderColor;delete t.yAxis[0].labels.style.backgroundColor;delete t.yAxis[0].labels.style.borderColor;
delete t.yAxis[1].labels.style.backgroundColor;delete t.yAxis[1].labels.style.borderColor;C.showTooltip=e(m.showtooltip,this.showtooltip,1);C.tooltipSepChar=h(m.tooltipsepchar,this.tooltipsepchar,cb);C.showValues=e(m.showvalues,this.showValues,1);C.seriesNameInToolTip=e(m.seriesnameintooltip,1);C.showVLines=e(m.showvlines,1);C.showVLinesOnTop=e(m.showvlinesontop,0);C.showVLineLabels=e(m.showvlinelabels,this.showVLineLabels,1);C.showVLineLabelBorder=e(m.showvlinelabelborder,1);C.rotateVLineLabels=
e(m.rotatevlinelabels,0);C.vLineColor=h(m.vlinecolor,"333333");C.vLineThickness=h(m.vlinethickness,1);C.vLineAlpha=e(m.vlinealpha,80);C.vLineLabelBgColor=h(m.vlinelabelbgcolor,"ffffff");C.vLineLabelBgAlpha=e(m.vlinelabelbgalpha,i?50:100);C.trendlineColor=h(m.trendlinecolor,"333333");C.trendlineThickness=h(m.trendlinethickness,1);C.trendlineAlpha=e(m.trendlinealpha);C.showTrendlinesOnTop=h(m.showtrendlinesontop,0);C.trendlineValuesOnOpp=h(m.trendlinevaluesonopp,m.trendlinevaluesonright,0);C.trendlinesAreDashed=
e(m.trendlinesaredashed,0);C.trendlinesDashLen=e(m.trendlinedashlen,5);C.trendlinesDashGap=e(m.trendlinedashgap,2);C.showTrendlines=e(m.showtrendlines,1);C.showTrendlineLabels=e(m.showtrendlinelabels,this.showTrendlineLabels,1);C.flatScrollBars=e(m.flatscrollbars,0);C.scrollBar3DLighting=e(m.scrollbar3dlighting,1);t.plotOptions.series.connectNullData=e(m.connectnulldata,0);N.backgroundColor={FCcolor:{color:h(m.bgcolor,w[T.bgColor][Z]),alpha:h(m.bgalpha,w[T.bgAlpha][Z]),angle:h(m.bgangle,w[T.bgAngle][Z]),
ratio:h(m.bgratio,w[T.bgRatio][Z])}};N.borderRadius=e(m.borderradius,0);N.rotateValues=e(m.rotatevalues,0);N.placeValuesInside=e(m.placevaluesinside,0);N.valuePosition=h(m.valueposition,"auto");N.valuePadding=e(m.valuepadding,2);N.borderColor=s(h(m.bordercolor,i?"#666666":w.borderColor[Z]),h(m.borderalpha,i?"100":w.borderAlpha[Z]));r=e(m.showborder,i?0:1);N.borderWidth=r?e(m.borderthickness,1):0;N.plotBorderColor=s(h(m.canvasbordercolor,w.canvasBorderColor[Z]),h(m.canvasborderalpha,w.canvasBorderAlpha[Z]));
m.showcanvasborder!="0"&&(v=Boolean(h(m.canvasborderthickness,ha?0:1)));N.plotBorderWidth=i||!v?0:e(m.canvasborderthickness,this.canvasborderthickness,N.useRoundEdges?1:2);N.bgSWF=h(m.bgimage,m.bgswf);N.bgSWFAlpha=e(m.bgimagealpha,m.bgswfalpha,100);ha=h(m.bgimagedisplaymode,"none").toLowerCase();r=R(m.bgimagevalign,B).toLowerCase();ea=R(m.bgimagehalign,B).toLowerCase();ha=="tile"||ha=="fill"||ha=="fit"?(r!=Q&&r!="middle"&&r!=sa&&(r="middle"),ea!=La&&ea!="middle"&&ea!=Aa&&(ea="middle")):(r!=Q&&r!=
"middle"&&r!=sa&&(r=Q),ea!=La&&ea!="middle"&&ea!=Aa&&(ea=La));N.bgImageDisplayMode=ha;N.bgImageVAlign=r;N.bgImageHAlign=ea;N.bgImageScale=e(m.bgimagescale,100);N.logoURL=R(m.logourl);N.logoPosition=h(m.logoposition,"tl").toLowerCase();N.logoAlpha=e(m.logoalpha,100);N.logoLink=R(m.logolink);N.logoScale=e(m.logoscale,100);N.logoLeftMargin=e(m.logoleftmargin,0);N.logoTopMargin=e(m.logotopmargin,0);ha=N.toolbar={button:{}};r=ha.button;r.scale=e(m.toolbarbuttonscale,1.15);r.width=e(m.toolbarbuttonwidth,
15);r.height=e(m.toolbarbuttonheight,15);r.radius=e(m.toolbarbuttonradius,2);r.spacing=e(m.toolbarbuttonspacing,5);r.fill=s(h(m.toolbarbuttoncolor,"ffffff"));r.labelFill=s(h(m.toolbarlabelcolor,"cccccc"));r.symbolFill=s(h(m.toolbarsymbolcolor,"ffffff"));r.hoverFill=s(h(m.toolbarbuttonhovercolor,"ffffff"));r.stroke=s(h(m.toolbarbuttonbordercolor,"bbbbbb"));r.symbolStroke=s(h(m.toolbarsymbolbordercolor,"9a9a9a"));r.strokeWidth=e(m.toolbarbuttonborderthickness,1);r.symbolStrokeWidth=e(m.toolbarsymbolborderthickness,
1);ea=r.symbolPadding=e(m.toolbarsymbolpadding,5);r.symbolHPadding=e(m.toolbarsymbolhpadding,ea);r.symbolVPadding=e(m.toolbarsymbolvpadding,ea);ea=ha.position=h(m.toolbarposition,"tr").toLowerCase();switch(ea){case "tr":case "tl":case "br":case "bl":break;default:ea="tr"}r=ha.hAlign=(B+m.toolbarhalign).toLowerCase()==="left"?"l":ea.charAt(1);u=ha.vAlign=(B+m.toolbarvalign).toLowerCase()==="bottom"?"b":ea.charAt(0),ea=u;ha.hDirection=e(m.toolbarhdirection,r==="r"?-1:1);ha.vDirection=e(m.toolbarvdirection,
ea==="b"?-1:1);ha.vMargin=e(m.toolbarvmargin,6);ha.hMargin=e(m.toolbarhmargin,10);ha.x=e(m.toolbarx,r==="l"?0:b);ha.y=e(m.toolbary,ea==="t"?0:g);la=h(m.divlinecolor,w[T.divLineColor][Z]);pa=h(m.divlinealpha,i?w.divLineAlpha3D[Z]:w.divLineAlpha[Z]);ha=e(m.divlinethickness,1);r=Boolean(e(m.divlineisdashed,this.divLineIsDashed,0));ea=e(m.divlinedashlen,4);na=e(m.divlinedashgap,2);t.yAxis[0].gridLineColor=s(la,pa);t.yAxis[0].gridLineWidth=ha;t.yAxis[0].gridLineDashStyle=r?I(ea,na,ha):void 0;t.yAxis[0].alternateGridColor=
k?s(h(m.alternatevgridcolor,w.altVGridColor[Z]),e(m.showalternatevgridcolor,1)===1?h(m.alternatevgridalpha,w.altVGridAlpha[Z]):oa):s(h(m.alternatehgridcolor,w.altHGridColor[Z]),m.showalternatehgridcolor==0?0:h(m.alternatehgridalpha,w.altHGridAlpha[Z]));H=e(m.vdivlinethickness,1);ja=Boolean(e(m.vdivlineisdashed,0));o=e(m.vdivlinedashlen,4);wa=e(m.vdivlinedashgap,2);x.gridLineColor=s(h(m.vdivlinecolor,w[T.divLineColor][Z]),h(m.vdivlinealpha,w.divLineAlpha[Z]));x.gridLineWidth=H;x.gridLineDashStyle=
ja?I(o,wa,H):void 0;x.alternateGridColor=s(h(m.alternatevgridcolor,w.altVGridColor[Z]),m.showalternatehgridcolor==="1"?h(m.alternatevgridalpha,w.altVGridAlpha[Z]):0);var H=h(m.canvasbgcolor,w[T.canvasBgColor][Z]),fa,ja=h(m.canvasbgalpha,w.canvasBgAlpha[Z]);h(m.showcanvasbg,da)==oa&&(ja="0");t.plotOptions.series.shadow=e(m.showshadow,m.showcolumnshadow,this.defaultPlotShadow,w.showShadow[Z]);if(this.inversed)t.yAxis[0].reversed=!0,t.yAxis[1].reversed=!0;if(this.isStacked)this.distributedColumns?(C.showStackTotal=
Boolean(e(m.showsum,1)),o=e(m.usepercentdistribution,1),wa=e(m.showpercentvalues,0),fa=e(m.showpercentintooltip,o,0),C.showXAxisPercentValues=e(m.showxaxispercentvalues,1)):(C.showStackTotal=Boolean(e(this.showSum,m.showsum,0)),o=e(this.stack100percent,m.stack100percent,0),wa=e(m.showpercentvalues,o,0),fa=e(m.showpercentintooltip,wa)),C.showPercentValues=wa,C.showPercentInToolTip=fa,o?(C.isValueAbs=!0,q[n].stacking="percent",C[0].stacking100Percent=!0):q[n].stacking="normal";if(this.isDual){if(m.primaryaxisonleft===
"0")t.yAxis[0].opposite=!0,t.yAxis[1].opposite=!1;t.yAxis[0].showAlways=!0;t.yAxis[1].showAlways=!0}if(N.useRoundEdges){t.plotOptions.series.shadow=e(m.showshadow,m.showcolumnshadow,1);t.plotOptions.series.borderRadius=1;t.tooltip.style.borderRadius="2px";N.plotBorderRadius=3;if(!v)N.plotBorderWidth=0;N.plotShadow=t.plotOptions.series.shadow?{enabled:!0,opacity:ja/100}:0}if(e(m.use3dlighting,1)===1)t.legend.lighting3d=!0;t.plotOptions.series.userMaxColWidth=k?m.maxbarheight:e(m.maxcolwidth,this.maxColWidth);
t.plotOptions.series.maxColWidth=Math.abs(e(t.plotOptions.series.userMaxColWidth,50))||1;t.title.text=K(m.caption);t.subtitle.text=K(m.subcaption);if(e(m.showtooltip,this.showtooltip)==0)t.tooltip.enabled=!1;n=t.tooltip.style;n.backgroundColor=s(h(n.backgroundColor,m.tooltipbgcolor,w.toolTipBgColor[Z]),h(m.tooltipbgalpha,100));n.borderColor=s(h(n.borderColor,m.tooltipbordercolor,w.toolTipBorderColor[Z]),h(m.tooltipborderalpha,100));t.tooltip.shadow=m.showtooltipshadow==da?{enabled:!0,opacity:l(e(m.tooltipbgalpha,
100),e(m.tooltipborderalpha,100))/100}:!1;n.borderWidth=e(m.tooltipborderthickness,1)+"px";if(m.tooltipborderradius)n.borderRadius=e(m.tooltipborderradius,1)+"px";n.padding=e(m.tooltippadding,this.tooltippadding,3)+"px";if(m.tooltipcolor)n.color=z(m.tooltipcolor);C.userPlotSpacePercent=t.plotOptions.series.userPlotSpacePercent=m.plotspacepercent;n=e(m.plotspacepercent,20)%100;C.plotSpacePercent=t.plotOptions.series.groupPadding=n/200;i&&!j?(N.series2D3Dshift=d==="mscombi3d"?!0:Boolean(e(m.use3dlineshift,
0)),N.canvasBaseColor3D=h(m.canvasbasecolor,w.canvasBaseColor3D[Z]),N.canvasBaseDepth=e(m.canvasbasedepth,10),N.canvasBgDepth=e(m.canvasbgdepth,3),N.showCanvasBg=Boolean(e(m.showcanvasbg,1)),N.showCanvasBase=Boolean(e(m.showcanvasbase,1)),k?(N.xDepth=5,N.yDepth=5,N.showCanvasBg&&(C.marginTopExtraSpace+=N.canvasBgDepth),C.marginLeftExtraSpace+=N.yDepth+(N.showCanvasBase?N.canvasBaseDepth:0),C.marginBottomExtraSpace+=5):(N.xDepth=10,N.yDepth=10,N.showCanvasBg&&(C.marginRightExtraSpace+=N.canvasBgDepth),
C.marginBottomExtraSpace+=N.yDepth+(N.showCanvasBase?N.canvasBaseDepth:0)),H=H.split(ma)[0],ja=ja.split(ma)[0],N.use3DLighting=Boolean(e(m.use3dlighting,1)),N.plotBackgroundColor=N.use3DLighting?{FCcolor:{color:a(H,85)+ma+f(H,55),alpha:ja+ma+ja,ratio:Qa,angle:Za(b-(N.marginLeft+N.marginRight),g-(N.marginTop+N.marginBottom),1)}}:s(H,ja),N.canvasBgColor=s(a(H,80),ja),j=h(m.zeroplanecolor,m.divlinecolor,w[T.divLineColor][Z]),k=h(m.zeroplanealpha,m.divlinealpha,w.divLineAlpha[Z]),N.zeroPlaneColor=s(j,
k),N.zeroPlaneBorderColor=s(h(m.zeroplanebordercolor,j),e(m.zeroplaneshowborder,1)?k:0)):(N.is3D=!1,N.plotBackgroundColor={FCcolor:{color:H,alpha:ja,angle:h(m.canvasbgangle,w.canvasBgAngle[Z]),ratio:h(m.canvasbgratio,w.canvasBgRatio[Z])}});this.parseExportOptions(t);this.preSeriesAddition&&this.preSeriesAddition(t,p,b,g);this.series&&this.series(p,t,d,b,g);this.postSeriesAddition(t,p,b,g);this.spaceManager(t,p,b,g);this.postSpaceManager&&this.postSpaceManager(t,p,b,g);d=e(m.drawquadrant,0);if(C.isXYPlot&&
d&&(o=x.min,wa=x.max,q=t.yAxis[0].min,v=t.yAxis[0].max,fa=e(m.quadrantxval,(o+wa)/2),H=e(m.quadrantyval,(q+v)/2),H>=q&&H<=v&&fa>=o&&fa<=wa)){var n=s(h(m.quadrantlinecolor,N.plotBorderColor),h(m.quadrantlinealpha,qa)),ja=e(m.quadrantlinethickness,N.plotBorderWidth),ua=e(m.quadrantlineisdashed,0),L=e(m.quadrantlinedashLen,4),J=e(m.quadrantlinedashgap,2);k=R(m.quadrantlabeltl,B);d=R(m.quadrantlabeltr,B);p=R(m.quadrantlabelbl,B);j=R(m.quadrantlabelbr,B);T=e(m.quadrantlabelpadding,3);ua=ua?I(L,J,ja):void 0;
x.plotLines.push({color:n,value:fa,width:ja,dashStyle:ua,zIndex:3});t.yAxis[0].plotLines.push({color:n,value:H,width:ja,dashStyle:ua,zIndex:3});ja=b-N.marginRight-N.marginLeft;ua=g-N.marginTop-N.marginBottom;n=C.inCanvasStyle;parseInt(n.fontSize,10);o=ja/(wa-o)*(fa-o);wa=ja-o;v=ua/(v-q)*(H-q);q=ua-v;o-=T;wa-=T;q-=T;v-=T;H=T+Ca;fa=ua-T+Ca;ua=T+Ca;T=ja-T+Ca;E.setStyle(n);q>0&&(k!==B&&o>0&&(k=E.getSmartText(k,o,q),t.labels.items.push({html:k.text,zIndex:3,vAlign:Q,style:{left:ua,top:H,fontSize:n.fontSize,
lineHeight:n.lineHeight,fontFamily:n.fontFamily,color:n.color}})),d!==B&&wa>0&&(k=E.getSmartText(d,wa,q),t.labels.items.push({html:k.text,textAlign:Aa,vAlign:Q,zIndex:3,style:{left:T,top:H,fontSize:n.fontSize,lineHeight:n.lineHeight,fontFamily:n.fontFamily,color:n.color}})));v>0&&(p!==B&&o>0&&(k=E.getSmartText(p,o,v),t.labels.items.push({html:k.text,vAlign:sa,zIndex:3,style:{left:ua,top:fa,fontSize:n.fontSize,lineHeight:n.lineHeight,fontFamily:n.fontFamily,color:n.color}})),j!==B&&wa>0&&(k=E.getSmartText(j,
wa,v),t.labels.items.push({html:k.text,textAlign:Aa,vAlign:sa,zIndex:3,style:{left:T,top:fa,fontSize:n.fontSize,lineHeight:n.lineHeight,fontFamily:n.fontFamily,color:n.color}})))}if(this.hasVDivLine&&(d=e(m.numvdivlines,0)+1,d>1)){C=C.x.catCount-1;E=x.max;d=C/d;p=!0;j=x.min;var V;x.scroll&&!isNaN(x.scroll.viewPortMax)&&(E=x.scroll.viewPortMax);la=h(m.vdivlinecolor,la);pa=e(m.vdivlinealpha,pa);H=e(m.vdivlinethickness,ha);ja=e(m.vdivlineisdashed,r);o=e(m.vdivlinedashlen,ea);wa=e(m.vdivlinedashgap,na);
(ha=e(m.showalternatevgridcolor,0))&&(V=s(h(m.alternatevgridcolor,w.altVGridColor[Z]),h(m.alternatevgridalpha,w.altVGridAlpha[Z])));for(Z=d;Z<C;Z+=d,p=!p)p&&ha&&x.plotBands.push({isNumVDIV:!0,color:V,from:j,to:Z,zIndex:1}),x.plotLines.push({isNumVDIV:!0,width:H,color:s(la,pa),dashStyle:ja?I(o,wa,H):void 0,value:Z,zIndex:1}),j=Z;p&&ha&&x.plotBands.push({isNumVDIV:!0,color:V,from:j,to:E,zIndex:1})}if(i&&N.xDepth>N.marginLeft)N.marginLeft=N.xDepth;window.console&&window.console.log&&window.FC_DEV_ENVIRONMENT&&
console.log(t);return t},parseExportOptions:function(a){var b,c=this.dataObj.chart,g=this.chartInstance.jsVars.transparent?"":this.chartInstance.options.containerBackgroundColor||"#ffffff";a.exporting.enabled=e(c.exportenabled,0);a.exporting.bgcolor=g;a.exporting.exporttargetwindow=h(c.exporttargetwindow,"_self");a.exporting.exportaction=c.exportaction&&c.exportaction.toString().toLowerCase()==="save"&&"save"||"download";b=j(a.exporting.exportaction);a.exporting.exportfilename=h(c.exportfilename,
"FusionCharts");a.exporting.exporthandler=h(c.html5exporthandler,c.exporthandler,"http://export.api3.fusioncharts.com/");a.exporting.exportparameters=h(c.exportparameters,"");a.exporting.exportformat=h(c.exportformat,"PNG");a.exporting.exportatclient=e(c.exportatclient,0);a.exporting.exportformats=function(a){var c={JPG:b+" as JPEG image",PNG:b+" as PNG image",PDF:b+" as PDF document",SVG:b+" as SVG vector image"},e,g,d,f=0;if(a){a=a.split("|");for(f=0;f<a.length;f++)d=(g=a[f].split("="))&&g[0].toUpperCase()||
"",g=g&&g[1]||"",c[d]&&(e||(e={}))&&(e[d]=g||c[d])}return e||c}(c.exportformats);a.exporting.buttons.printButton.enabled=c.showprintmenuitem=="1";a.exporting.buttons.exportButton.enabled=c.exportenabled=="1"?c.exportshowmenuitem!="0":!1},defaultSeriesType:B,paletteIndex:1,creditLabel:Ma,placeTitle:ta,placeLegendBlockBottom:n,placeLegendBlockRight:Ga,placeHorizontalAxis:T,placeVerticalAxis:pa,placeHorizontalCanvasMarginAdjustment:ua,placeVerticalCanvasMarginAdjustment:na,placeHorizontalXYSpaceManager:function(a,
b,c,g){var d=a[W],f,p,t,i=b.chart,j,k,o,n,C,E,q=d.marginLeftExtraSpace,r=d.marginTopExtraSpace,s=d.marginBottomExtraSpace,N=d.marginRightExtraSpace;t=c-(q+N+a.chart.marginRight+a.chart.marginLeft);var T=g-(s+a.chart.marginBottom+a.chart.marginTop),ba=t*0.3,c=T*0.3;f=t-ba;g=T-c;j=h(i.legendposition,sa).toLowerCase();a.legend.enabled&&j===Aa&&(f-=this.placeLegendBlockRight(a,b,f/2,T));n=e(i.xaxisnamepadding,5);C=e(i.labelpadding,2);E=i.rotatexaxisname!==oa;k=h(i.showplotborder,d.is3d?oa:da)===da;k=
d.plotBorderThickness=k?d.is3d?1:e(i.plotborderthickness,1):0;o=l(e(i.canvasborderthickness,1),0);p=l(o,k/2);C<p&&(C=p);if(!d.isDual&&a.chart.marginRight<o&&i.chartrightmargin===void 0&&(p=o-a.chart.marginRight,t>ba+p))a.chart.marginRight=o,t-=p,ba=t*0.3,f=t-ba;p=d.x;p.verticalAxisNamePadding=n;p.verticalAxisValuesPadding=C;p.rotateVerticalAxisName=E;p.verticalAxisNameWidth=e(i.xaxisnamewidth);f-=pa(a.xAxis,p,a,b,T,f,!1,!1,t);f-=ua(a,b,f,a.xAxis);t=f+ba;a.legend.enabled&&j!==Aa&&(g-=this.placeLegendBlockBottom(a,
b,t,g/2));g-=ta(a,b,t,g/2);p=d[0];p.horizontalAxisNamePadding=e(i.yaxisnamepadding,5);p.horizontalLabelPadding=e(i.yaxisvaluespadding,2);p.labelDisplay="auto";p.staggerLines=e(i.staggerlines,2);p.slantLabels=e(i.slantlabels,0);p.horizontalLabelPadding=p.horizontalLabelPadding<o?o:p.horizontalLabelPadding;this.xAxisMinMaxSetter(a,b,t);f=a.xAxis;C=f.plotLines;o=g/(f.max-f.min);C&&C.length&&(n=(C[0].value-f.min)*o,C=(f.max-C[C.length-1].value)*o,d.isBar&&(k>n&&(f.min-=(k-n)/(2*o)),k>C&&(f.max+=(k-C)/
(2*o))));g-=this.placeHorizontalAxis(a.yAxis[0],p,a,b,t,g,ba);g-=na(a,b,g,a.yAxis[0]);la(c+g,a,i,a.xAxis,d.x.lYLblIdx,!0);ea(a,a.xAxis.title,g);if(a.legend.enabled&&j===Aa){b=a.legend;d=c+g;if(b.height>d)b.height=d,b.scroll.enabled=!0,d=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=d,a.chart.marginRight+=d;b.y=20}a.chart.marginLeft+=q;a.chart.marginTop+=r;a.chart.marginBottom+=s;a.chart.marginRight+=N},placeVerticalXYSpaceManager:function(a,b,c,g){var d=a[W],f,p,t=!0,i=0,j=b.chart,
k=!1,o,C,n,E=d.marginLeftExtraSpace,q=d.marginTopExtraSpace,r=d.marginBottomExtraSpace,s=d.marginRightExtraSpace;f=c-(E+s+a.chart.marginRight+a.chart.marginLeft);var N=g-(r+a.chart.marginBottom+a.chart.marginTop),T=f*0.3,g=N*0.3,ba=f-T,c=N-g,i=d.drawFullAreaBorder=e(j.drawfullareaborder,1),v=h(j.legendposition,sa).toLowerCase();o=e(j.yaxisnamepadding,5);C=e(j.yaxisvaluespadding,j.labelypadding,2);p=h(j.showplotborder,d.is3d?oa:da)===da;p=d.plotBorderThickness=p?d.is3d?1:e(j.plotborderthickness,1):
0;n=l(e(j.canvasborderthickness,1),0);p=l(n,p/2);this.defaultSeriesType==="area"&&!i&&(p=n);C<n&&(C=n);if(!d.isDual&&a.chart.marginRight<n&&j.chartrightmargin===void 0&&(i=n-a.chart.marginRight,f>T+i))a.chart.marginRight=n,f-=i,T=f*0.3,ba=f-T;a.legend.enabled&&v===Aa&&(ba-=this.placeLegendBlockRight(a,b,ba/2,N));i=j.rotateyaxisname!==oa;if(d.isDual)k=!0,f=d[1],f.verticalAxisNamePadding=o,f.verticalAxisValuesPadding=C,f.rotateVerticalAxisName=i,f.verticalAxisNameWidth=e(j.syaxisnamewidth),t=a.yAxis[1].opposite,
ba-=pa(a.yAxis[1],f,a,b,N,ba/2,t,k);f=d[0];f.verticalAxisNamePadding=o;f.verticalAxisValuesPadding=C;f.rotateVerticalAxisName=i;f.verticalAxisNameWidth=e(k?j.pyaxisnamewidth:j.yaxisnamewidth);ba-=pa(a.yAxis[0],f,a,b,N,ba,!t,k);ba-=ua(a,b,ba,a.yAxis[0],a.yAxis[1]);t=ba+T;a.legend.enabled&&v!==Aa&&(c-=this.placeLegendBlockBottom(a,b,t,c/2));c-=ta(a,b,t,c/2);f=d.x;f.horizontalAxisNamePadding=e(j.xaxisnamepadding,5);f.horizontalLabelPadding=e(j.labelpadding,j.labelxpadding,2);f.labelDisplay=h(j.labeldisplay,
"auto").toLowerCase();f.rotateLabels=e(j.rotatelabels,j.rotatexaxislabels,0);f.staggerLines=e(j.staggerlines,2);f.slantLabels=e(j.slantlabels,j.slantlabel,0);if(f.horizontalLabelPadding<p)f.horizontalLabelPadding=p;this.xAxisMinMaxSetter(a,b,t);c-=this.placeHorizontalAxis(a.xAxis,f,a,b,t,c,T);c-=na(a,b,c,a.xAxis);k&&(la(g+c,a,j,a.yAxis[1],d[1].lYLblIdx),ea(a,a.yAxis[1].title,c));la(g+c,a,j,a.yAxis[0],d[0].lYLblIdx);ea(a,a.yAxis[0].title,c);if(a.legend.enabled&&v===Aa&&(b=a.legend,d=g+c,b.height>d&&
b.type!=="gradient"))b.height=d,b.scroll.enabled=!0,d=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=d,a.chart.marginRight+=d;a.chart.marginLeft+=E;a.chart.marginTop+=q;a.chart.marginBottom+=r;a.chart.marginRight+=s},placeVerticalAxisTitle:ea,spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(a,b,c,g,d,f,h,p){c=b.stacking100Percent?bb(99,1,100,0,d,f,h,p):bb(e(b.max,c),e(b.min,g),c,g,d,f,h,p);a.min=Number(V(c.Min,10));
a.max=Number(V(c.Max,10));a.tickInterval=Number(V(c.divGap,10));b.numdivlines=Math.round((a.max-a.min)/a.tickInterval)-1;if(c.Range/c.divGap<=2)a.alternateGridColor=o;this.highValue=b.max;this.lowValue=b.min;delete b.max;delete b.min},configurePlotLines:function(a,b,c,g,d,f,p,t,i,j){var k;k=c.min;var l=c.max,n=c.tickInterval,C=j?"xAxis":g.stacking100Percent?"percentValue":i?"sYAxis":"yAxis",E=k,q=1,r=c.gridLineColor,N=c.gridLineWidth,ba=c.gridLineDashStyle,T=k<0&&l>0?!0:!1,v=k===0,ha=l===0,x=e(g.showzeroplanevalue,
a.showzeroplanevalue)===0,Z=!0,z=1,H=e(a.numdivlines,0)>0,pa=b[W].axisGridManager,la=b.chart.paletteIndex;delete c._altGrid;delete c._lastValue;if(j&&!g.catOccupied)g.catOccupied={};if(T&&(!j||!g.catOccupied[0]))if(j?(Z=e(a.showvzeroplane,1),b=e(a.showvzeroplanevalue,f),H=e(a.vzeroplanethickness,1),a=H>0?s(h(a.vzeroplanecolor,r),h(a.vzeroplanealpha,a.vdivlinealpha,w.divLineAlpha[la])):o):(la=e(a.divlinealpha,w.divLineAlpha[la]),b=e(g.showzeroplanevalue,a.showzeroplanevalue,f),this.defaultZeroPlaneHighlighted===
!1?(Z=e(g.showzeroplane,a.showzeroplane,!(this.defaultZeroPlaneHidden&&!H)),H=N):(H=N===1?2:N,z=5,la*=2),H=e(g.zeroplanethickness,a.zeroplanethickness,H),a=H>0?s(h(g.zeroplanecolor,a.zeroplanecolor,r),h(g.zeroplanealpha,a.zeroplanealpha,la)):o),Z)Z=b?t[C](0):B,(z=pa.addAxisGridLine(c,0,Z,H,ba,a,z,j))&&(z.isZeroPlane=!0);if(d===1&&(!j||!g.catOccupied[k]))Z=v&&x?B:t[C](k),(z=pa.addAxisGridLine(c,k,Z,0.1,void 0,o,1,j))&&(z.isMinLabel=!0);N<=0&&(N=0.1,r=o);for(k=Number(V(E+n,10));k<l;k=Number(V(k+n,10)),
q+=1){T&&E<0&&k>0&&!i&&(pa.addAxisAltGrid(c,0),q+=1);if(k!==0&&(!j||!g.catOccupied[k]))Z=f===1&&q%p===0?t[C](k):B,pa.addAxisGridLine(c,k,Z,N,ba,r,2,j);E=k;i||pa.addAxisAltGrid(c,k)}i||pa.addAxisAltGrid(c,l);if(d===1&&q%p===0&&(!j||!g.catOccupied[l]))Z=ha&&x?B:t[C](l),(z=pa.addAxisGridLine(c,l,Z,0.1,ba,o,2,j))&&(z.isMaxLabel=!0);if(this.realtimeEnabled)c.labels._enabled=c.labels.enabled,c._gridLineWidth=c.gridLineWidth,c._alternateGridColor=c.alternateGridColor;c.labels.enabled=!1;c.gridLineWidth=
0;c.alternateGridColor=o;c.plotLines.sort(wa)},xAxisMinMaxSetter:function(a,b,c){var g=a[W],m=g.x,f=b.chart,h=m.min=e(m.min,0),p=m.max=e(m.max,m.catCount-1),t,i=0,j=0,k=a.chart.defaultSeriesType,l=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(k),C=/^(line|area|spline|areaspline)$/.test(k),k=/^(scatter|bubble|candlestick|dragnode)$/.test(k),n=a.xAxis,E=n.scroll,q=t=Math.min(e(f.canvaspadding,0),c/2-10);if(m.adjustMinMax){var p=h=!e(f.setadaptivexmin,1),
r=e(this.numVDivLines,f.numvdivlines,4),s=f.adjustvdiv!==oa,N=e(f.showxaxisvalues,f.showxaxisvalue,1),ba=e(f.showvlimits,N),N=e(f.showvdivlinevalue,f.showvdivlinevalues,N);this.axisMinMaxSetter(n,m,f.xaxismaxvalue,f.xaxisminvalue,h,p,r,s);h=n.min;p=n.max;m.requiredAutoNumericLabels&&(r=e(parseInt(f.xaxisvaluesstep,10),1),this.configurePlotLines(f,a,n,m,ba,N,r<1?1:r,g.numberFormatter,!1,!0));n.plotLines.sort(wa)}n.labels.enabled=!1;n.gridLineWidth=0;n.alternateGridColor=o;if((l||g.isScroll)&&!g.hasNoColumn)j=
i=0.5;g.is3d&&(q+=e(a.chart.xDepth,0));a=(c-(q+t))/(p-h+(i+j));n.min=h-(i+q/a);n.max=p+(j+t/a);if(E&&E.enabled)i=E.vxLength,j=n.max-n.min,E.viewPortMin=n.min,E.viewPortMax=n.max,E.scrollRatio=i/j,E.flatScrollBars=g.flatScrollBars,E.scrollBar3DLighting=g.scrollBar3DLighting,n.max=n.min+i;C&&n.min===n.max&&(n.min-=0.5,n.max+=0.5);k&&b.vtrendlines&&d(b.vtrendlines,n,g,!1,!0,!0)},postSeriesAddition:function(a){var b=a[W],c=b.isBar,g=b.is3d,d=a.chart.rotateValues&&!c?270:0,f=b[0],p=f&&f.stacking100Percent;
if(this.isStacked&&(b.showStackTotal||p)){var t=b.plotSpacePercent,i=a.chart.defaultSeriesType,j,k,l=1-t,l=1-2*t,o,n,C,E,q,r,s,N,ba,T,ha,t=a.series,Z,x,w=U({},a.plotOptions.series.dataLabels.style),z=parseFloat(w.fontSize),H=!f.stacking100Percent;w.color=a.plotOptions.series.dataLabels.color;k=f.stack;for(j in k){f=k[j].length;o=l/f;C=-(l-o)/2;if(p){T=[];N=0;for(E=t.length;N<E;N+=1)q=t[N],!q.yAixs&&h(q.type,i)===j&&T.push(q)}for(n=0;n<f;n+=1,C+=o){s=k[j][n];if(p){ha=[];N=0;for(E=T.length;N<E;N+=1)q=
T[N],e(q.columnPosition,0)===n&&ha.push(q.data)}r=0;for(q=s.length;r<q;r+=1)if(N=s[r],ba=(N.n||0)+(N.p||0),b.showStackTotal&&(E=r,E+=C,N=ba<0?N.n:N.p,a.xAxis.plotLines.push({value:E,width:0,isVline:H,isTrend:!H,zIndex:4,_isStackSum:1,_catPosition:r,_stackIndex:n,label:{align:v,textAlign:!g&&d===270?ba<0?Aa:La:c?ba<0?Aa:La:v,offsetScale:H?N:void 0,offsetScaleIndex:0,rotation:d,style:w,verticalAlign:Q,y:c?0:ba<0?d===270?4:z:-4,x:0,text:b.numberFormatter.yAxis(ba)}})),p){N=0;for(E=ha.length;N<E;N+=1){Z=
ha[N][r];if(Z.y||Z.y===0){x=Z.y/ba*100;Z.y=x;if(Z.showPercentValues)Z.displayValue=this.numberFormatter.percentValue(x);if(Z.showPercentInToolTip)Z.toolText=Z.toolText+parseInt(x*100,10)/100+"%"}if(Z.previousY||Z.previousY===0)Z.previousY=Z.previousY/ba*100}}}}}},styleMapForFont:Z,styleApplicationDefinition_font:function(a,b,c){var g,e,d=!1,f,p,h=this.styleMapForFont;switch(b){case "caption":g=a.title;break;case "datalabels":g=a.xAxis.labels;break;case "datavalues":g=a.plotOptions.series.dataLabels;
d=!0;break;case "subcaption":g=a.subtitle;break;case "tooltip":g=a.tooltip;break;case "trendvalues":g={style:a[W].trendStyle};break;case "xaxisname":g=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":g=[];b=0;for(f=a.yAxis.length;b<f;b+=1)g.push(a.yAxis[b].title);break;case "yaxisvalues":g=[];b=0;for(f=a.yAxis.length;b<f;b+=1)g.push(a.yAxis[b].labels);break;case "vlinelabels":g={style:a[W].divlineStyle};break;case "legend":g={style:a.legend.itemStyle};break;default:(g=a.orphanStyles[b])||
(a.orphanStyles[b]=g={text:"",style:{}})}if(typeof g==="object")if(g instanceof Array){b=0;for(f=g.length;b<f;b+=1){p=g[b];for(e in c)if(a=e.toLowerCase(),typeof h[a]==="function")h[a](c[e],p,d);A(p.style)}}else{for(e in c)if(a=e.toLowerCase(),typeof h[a]==="function")h[a](c[e],g,d);A(g.style)}},parseStyles:function(a){var b,c,g,e={},d,f=this.dataObj;if(f.styles&&f.styles.definition instanceof Array&&f.styles.application instanceof Array){for(b=0;b<f.styles.definition.length;b+=1)c=f.styles.definition[b],
c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(e[c.name.toLowerCase()]=c);for(b=0;b<f.styles.application.length;b+=1){c=f.styles.application[b].styles&&f.styles.application[b].styles.split(ma)||[];for(d=0;d<c.length;d+=1)if(g=c[d].toLowerCase(),e[g]&&f.styles.application[b].toobject)this["styleApplicationDefinition_"+e[g].type.toLowerCase()](a,f.styles.application[b].toobject.toLowerCase(),e[g])}}},dispose:function(){this.smartLabel&&this.smartLabel.dispose();this.renderer&&
this.renderer.dispose()}});J("stub",{standaloneInit:!0},J.base);J("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},J.base);J("singleseries",{series:function(a,b,c){var g=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data;if(g&&g.length>0&&g instanceof Array)b.legend.enabled=!1,c=this.point(c,{data:[],colorByPoint:!0},g,a.chart,b),c instanceof Array?b.series=b.series.concat(c):b.series.push(c),this.configureAxis(b,a),a.trendlines&&d(a.trendlines,
b.yAxis,b[W],!1,this.isBar)},defaultSeriesType:B,configureAxis:function(a,b){var c=a[W],g=a.xAxis,d=b.chart,f,p,h,t,i,j,k,o,n,C,E,q=this.numberFormatter,N=e(d.syncaxislimits,0),s;g.title.text=K(d.xaxisname);s=e(parseInt(d.yaxisvaluesstep,10),parseInt(d.yaxisvaluestep,10),1);s=s<1?1:s;g=a.yAxis[0];f=c[0];if(c.isDual)if(p=q.getCleanValue(d.pyaxismaxvalue),h=q.getCleanValue(d.pyaxisminvalue),g.title.text=K(d.pyaxisname),N&&!f.stacking100Percent){E=c[1];C=e(E.max);E=e(E.min);if(C!==void 0&&E!==void 0)f.min=
r(f.min,E),f.max=l(f.max,C);C=q.getCleanValue(d.syaxismaxvalue);E=q.getCleanValue(d.syaxisminvalue);E!==null&&(h=h!==null?r(h,E):E);C!==null&&(p=p!==null?l(p,C):C)}else N=0;else p=q.getCleanValue(d.yaxismaxvalue),h=q.getCleanValue(d.yaxisminvalue),g.title.text=K(d.yaxisname);j=e(this.isStacked?0:this.setAdaptiveYMin,d.setadaptiveymin,0);i=t=!j;k=e(c.numdivlines,d.numdivlines,this.numdivlines,4);o=d.adjustdiv!==oa;n=e(this.showYAxisValues,d.showyaxisvalues,d.showyaxisvalue,1);C=e(d.showlimits,n);E=
e(d.showdivlinevalue,d.showdivlinevalues,n);this.axisMinMaxSetter(g,f,p,h,t,i,k,o);this.configurePlotLines(d,a,g,f,C,E,s,c.numberFormatter,!1);if(g.reversed&&g.min>=0)a.plotOptions.series.threshold=g.max;if(c.isDual)g=a.yAxis[1],f=c[1],C=e(d.showsecondarylimits,C),E=e(d.showdivlinesecondaryvalue,n),N?(q=a.yAxis[0],g.min=q.min,g.max=q.max,g.tickInterval=q.tickInterval,delete f.max,delete f.min):(p=q.getCleanValue(d.syaxismaxvalue),h=q.getCleanValue(d.syaxisminvalue),j=e(d.setadaptivesymin,j),i=t=!j,
this.axisMinMaxSetter(g,f,p,h,t,i,k,o)),this.configurePlotLines(d,a,g,f,C,E,s,c.numberFormatter,!0),g.title.text=K(d.syaxisname)},pointValueWatcher:function(a,b,c,g,d,f,p){if(b!==null){var a=a[W],t,c=e(c,0);a[c]||(a[c]={});c=a[c];if(g)this.distributedColumns&&(a.marimekkoTotal+=b),g=c.stack,d=e(d,0),f=e(f,0),p=h(p,Ka),g[p]||(g[p]=[]),p=g[p],p[f]||(p[f]=[]),f=p[f],f[d]||(f[d]={}),d=f[d],b>=0?d.p?(t=d.p,b=d.p+=b):d.p=b:d.n?(t=d.n,b=d.n+=b):d.n=b;c.max=c.max>b?c.max:b;c.min=c.min<b?c.min:b;return t}},
getPointStub:function(a,b,c,g){var g=g[W],b=b===null?b:g.numberFormatter.dataLabels(b),d=R(K(a.tooltext)),f=R(K(a.displayvalue)),c=g.showTooltip?d!==void 0?d:b===null?!1:c!==B?c+g.tooltipSepChar+b:b:B,g=e(a.showvalue,g.showValues)?f!==void 0?f:b:B,a=h(a.link);return{displayValue:g,toolText:c,link:a}}},J.base);J("multiseries",{series:function(a,b,c){var g,m,f=b[W],p;b.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&a.dataset.length>0){this.categoryAdder(a,b);g=0;for(m=a.dataset.length;g<
m;g+=1){p={data:[]};if(!this.isStacked)p.numColumns=m;p=this.point(c,p,a.dataset[g],a.chart,b,f.oriCatTmp.length,g);p instanceof Array?b.series=b.series.concat(p):b.series.push(p)}this.configureAxis(b,a);a.trendlines&&!this.isLog&&d(a.trendlines,b.yAxis,f,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(a,b){var c,g=0,d=b[W],f=d.axisGridManager,p=a.chart,h=b.xAxis,t,d=d.x;if(a.categories&&a.categories[0]&&a.categories[0].category){if(a.categories[0].font)b.xAxis.labels.style.fontFamily=
a.categories[0].font;if((c=e(a.categories[0].fontsize))!==void 0)c<1&&(c=1),b.xAxis.labels.style.fontSize=c+Ca,A(b.xAxis.labels.style);if(a.categories[0].fontcolor)b.xAxis.labels.style.color=a.categories[0].fontcolor.split(ma)[0].replace(/^\#?/,"#");var i=b[W].oriCatTmp,j=a.categories[0].category;for(c=0;c<j.length;c+=1)j[c].vline?f.addVline(h,j[c],g,b):(t=(t=e(j[c].showlabel,p.showlabels,1))?K(aa(a.categories[0].category[c].label,a.categories[0].category[c].name)):B,f.addXaxisCat(h,g,g,t),i[g]=aa(K(a.categories[0].category[c].tooltext),
t),g+=1)}d.catCount=g},getPointStub:function(a,b,c,g,d,f,p){var t,g=g[W],i,j,b=b===null?b:g.numberFormatter.dataLabels(b,p===1?!0:!1),k,l=R(K(a.tooltext)),p=g.tooltipSepChar;g.showTooltip?l!==void 0?d=l:b===null?d=!1:(g.seriesNameInToolTip&&(k=aa(d&&d.seriesname)),d=k?k+p:B,d+=c?c+p:B,g.showPercentInToolTip?j=!0:d+=b):d=!1;e(a.showvalue,f)?R(a.displayvalue)!==void 0?t=K(a.displayvalue):g.showPercentValues?i=!0:t=b:t=B;a=h(a.link);return{displayValue:t,toolText:d,link:a,showPercentValues:i,showPercentInToolTip:j}}},
J.singleseries);var fa=function(a,b){return a-b};J("xybase",{hideRLine:function(){var a=this.chart.series[this.index+1];a&&a.hide&&a.hide()},showRLine:function(){var a=this.chart.series[this.index+1];a&&a.show&&a.show()},getRegressionLineSeries:function(a,b,c){var g,e,d,f;f=a.sumXY;var p=a.sumX,h=a.sumY;e=a.xValues;d=a.sumXsqure;g=a.yValues;a=a.sumYsqure;b?(e.sort(fa),g=e[0],e=e[e.length-1],f=(c*f-p*h)/(c*d-Math.pow(p,2)),d=!isNaN(f)?f*(g-p/c)+h/c:h/c,c=!isNaN(f)?f*(e-p/c)+h/c:h/c,c=[{x:g,y:d},{x:e,
y:c}]):(g.sort(fa),d=g[0],g=g[g.length-1],f=(c*f-p*h)/(c*a-Math.pow(h,2)),e=!isNaN(f)?f*(d-h/c)+p/c:p/c,c=!isNaN(f)?f*(g-h/c)+p/c:p/c,c=[{x:e,y:d},{x:c,y:g}]);return c},pointValueWatcher:function(a,b,c,g){var e=a[W];if(b!==null)a=e[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b;if(c!==null)a=e.x,a.max=a.max>c?a.max:c,a.min=a.min<c?a.min:c;g&&(c=c||0,b=b||0,g.sumX+=c,g.sumY+=b,g.sumXY+=c*b,g.sumXsqure+=Math.pow(c,2),g.xValues.push(c),g.sumYsqure+=Math.pow(b,2),g.yValues.push(b))}},J.multiseries);J("scrollbase",
{postSeriesAddition:function(){var a=this.hcJSON,b=a.xAxis.scroll,c=a[W],g=c.width,d=c.x.catCount,f=this.dataObj.chart;c.isScroll=!0;a.chart.hasScroll=!0;if(this.isStacked)t=1;else{var t=0,i=0,j,k=a.series,l,n=a.chart.defaultSeriesType;for(j=k.length;i<j;i++)l=h(k[i].type,n),l==="column"&&(t+=1);t<1&&(t=1)}d*=t;g=e(f.numvisibleplot,Math.floor(g/this.avgScrollPointWidth));if(b&&g>=2&&g<d)b.enabled=!0,b.vxLength=g/t,b.startPercent=f.scrolltoend===da?1:0,b.padding=e(f.scrollpadding,a.chart.plotBorderWidth/
2),b.height=e(f.scrollheight,16),b.buttonWidth=e(f.scrollbtnwidth,f.scrollheight,16),b.buttonPadding=e(f.scrollbtnpadding,0),b.color=z(h(f.scrollcolor,w.altHGridColor[a.chart.paletteIndex])),c.marginBottomExtraSpace+=b.padding+b.height;if(p||e(f.enabletouchscroll,0))a.chart.zoomType="x",a.chart.nativeZoom=!1,a.chart.selectionMarkerFill="rgba(255,255,255,0)",(a.callbacks||(a.callbacks=[])).push(function(a){ia(a,"selectionstart selectiondrag",J.scrollbase.performTouchScroll,{})})},performTouchScroll:function(a){var b=
this.xAxis[0].scroller,c=b.config;a.isOutsidePlot!==!0&&C(b.elements.anchor.element,a.type==="selectionstart"?"dragstart":"drag",{pageX:-(c.trackLength/(c.width/c.scrollRatio)*(a.chartX||1)),pageY:-a.chartY})}},J.multiseries);J("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(a,b){var c=a[W],g=c.axisGridManager,f=this.numberFormatter,p=a.series,i=a.xAxis,j=a.yAxis[0],k=c[0],l=b.chart,n=!e(l.showlimits,l.showyaxisvalues,1),C=!e(l.showdivlinevalues,l.showyaxisvalues,1),E=e(l.base,l.logbase,
10),q=e(l.yaxismaxvalue),r=e(l.yaxisminvalue),N=e(l.showminordivlinevalues)===1,ba=h(l.minordivlinecolor,j.gridLineColor,w.divLineColor[a.chart.paletteIndex]),T=e(l.minordivlinealpha,l.divlinealpha,w.divLineAlpha[a.chart.paletteIndex]),v=[j,void 0,void 0,e(l.divlinethickness,2),j.gridLineDashStyle,j.gridLineColor,2],ba=[j,void 0,void 0,e(l.minordivlinethickness,1),j.gridLineDashStyle,s(h(l.minordivlinecolor,ba),e(l.minordivlinealpha,T/2)),2],T=N||T&&ba[3],ha;E<=0&&(E=10);q<=0&&(q=void 0);r<=0&&(r=
void 0);q=this.getLogAxisLimits(k.max||E,k.min||1,q,r,E,T?l.numminordivlines:0);i.title.text=K(l.xaxisname);U(j,{title:{text:K(l.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:o,reversed:l.invertyaxis==="1",max:t(q.Max,E),min:t(q.Min,E)});for(i=p.length;i--;)if(l=p[i]){l.threshold=j.min;for(ha=(l=l.data)&&l.length||0;ha--;)r=l[ha],r.y=t(r.y,E)}delete k.max;delete k.min;k.isLog=!0;if(j.reversed&&j.min>=0)a.plotOptions.series.threshold=j.max;b.trendlines&&d(b.trendlines,[{max:q.Max,
min:q.Min,plotLines:j.plotLines,plotBands:j.plotBands}],c);for(i=j.plotLines.length;i--;)r=j.plotLines[i],r.value&&(r.value=t(r.value,E)),r.from&&(r.from=t(r.from,E)),r.to&&(r.to=t(r.to,E));for(i=j.plotBands.length;i--;)r=j.plotBands[i],r.from&&(r.from=t(r.from,E)),r.to&&(r.to=t(r.to,E));for(i=q.divArr.length;i--;){r=q.divArr[i];if(r.ismajor)v[1]=t(r.value,E),v[2]=f.yAxis(r.value),g.addAxisGridLine.apply(g,v);else if(T||r.isextreme)ba[1]=t(r.value,E),ba[2]=N||r.isextreme?f.yAxis(r.value):B,g.addAxisGridLine.apply(g,
ba);l=j.plotLines[j.plotLines.length-1];if(r.isextreme){if(l.width=0.1,n)l.label.text=BLANK}else if(C&&l.label)l.label.text=BLANK}},getLogAxisLimits:function(a,b,c,g,e,d){var f=function(a){return a==null||a==void 0||a==""||isNaN(a)?!1:!0},p=0,h=[],t,i,j,k,l,n;f(c)&&Number(c)>=a?a=Number(c):(c=e>1?P(S(a)/S(e)):X(S(a)/S(e)),a=L(e,c),i=c);i||(i=e>1?P(S(a)/S(e)):X(S(a)/S(e)));f(g)&&Number(g)<=b?b=Number(g):(c=e>1?X(S(b)/S(e)):P(S(b)/S(e)),b=L(e,c),t=c);t||(t=e>1?X(S(b)/S(e)):P(S(b)/S(e)));g=Number(String(S(e)/
S(10)));d=Number(d)||(X(g)==g?8:4);e>1?(j=i,k=t):e>0&&e<1&&(j=t,k=i);g=i;for(t=j;t>=k;--t)if(j=L(e,g),b<=j&&a>=j&&(h[p++]={value:j,ismajor:!0}),t!=k){i=e>1?-1:1;j=L(e,g)-L(e,g+i);c=j/(d+1);for(f=1;f<=d;++f)j=L(e,g+i)+c*f,b<=j&&a>=j&&(h[p++]={value:j,ismajor:!1});e>1?g--:g++}for(var o in h)for(var E in h[o])if(E=="value"){if(!l)l=h[o][E]==b&&(h[o].isextreme=!0);if(!n)n=h[o][E]==a&&(h[o].isextreme=!0)}l||(h[p++]={value:b,ismajor:!0,isextreme:!0});n||(h[p]={value:a,ismajor:!0,isextreme:!0});return{Max:a,
Min:b,divArr:h}},pointValueWatcher:function(a,b,c){a=a[W];c=e(c,0);if(b>0)a[c]||(a[c]={}),c=a[c],c.max=c.max>b?c.max:b,c.min=c.min<b?c.min:b}},J.mslinebase);n=J.singleseries;Ga=J.multiseries;J("column2dbase",{point:function(a,b,c,g,d){var a=c.length,f=d[W],p=f.axisGridManager,t=d.xAxis,i=d.chart.paletteIndex,f=f.x,j=d.colors,k=d.colors.length,l=/3d$/.test(d.chart.defaultSeriesType),n=this.isBar,o=h(g.showplotborder,l?oa:da)===da?l?1:e(g.plotborderthickness,1):0,E=d.chart.useRoundEdges,C=e(g.plotborderalpha,
g.plotfillalpha,100),q=h(g.plotbordercolor,w.plotBorderColor[i]).split(ma)[0],i=ma+(e(g.useplotgradientcolor,1)?M(g.plotgradientcolor,w.plotGradientColor[i]):B),r=0,N=Boolean(e(g.use3dlighting,1)),s=d[W].numberFormatter,ba,T=e(g.plotborderdashed,0),v=e(g.plotborderdashlen,5),ha=e(g.plotborderdashgap,4),Z,z,H,pa,la,Da,ea,ja,A;for(H=z=0;z<a;z+=1)ea=c[z],ea.vline?p.addVline(t,ea,r,d):(Z=s.getCleanValue(ea.value),pa=e(ea.showlabel,g.showlabels,1),pa=K(!pa?B:aa(ea.label,ea.name)),p.addXaxisCat(t,r,r,pa),
r+=1,ba=h(ea.color,j[H%k])+i.replace(/,+?$/,""),la=h(ea.alpha,g.plotfillalpha,qa),Da=h(ea.ratio,g.plotfillratio),ja=h(360-g.plotfillangle,n?180:90),Z<0&&(ja=n?180-ja:360-ja),A={opacity:la/100},la=x(ba,la,Da,ja,E,q,h(ea.alpha,C)+B,n,l),ba=e(ea.dashed,T)?I(h(ea.dashlen,v),h(ea.dashgap,ha),o):void 0,b.data.push(U(this.getPointStub(ea,Z,pa,d),{y:Z,shadow:A,color:la[0],borderColor:la[1],borderWidth:o,use3DLighting:N,dashStyle:ba,tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(d,Z),H+=
1);f.catCount=r;return b},defaultSeriesType:"column"},n);J("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(a,b,c,g,d){var f,p,t,i,j,k,l,n,o,E,C,q,r,N,s,ba,T,v,ha,Z,x,H,pa,ea,la,a=d.chart,Da=c.length,ja=d.xAxis;f=d[W];var A=f.axisGridManager,na=0,wa=f.x,fa=d.chart.paletteIndex,ua=d[W].numberFormatter;s=z(h(g.linecolor,g.palettecolors,w.plotFillColor[fa]));ba=h(g.linealpha,qa);q=e(g.linethickness,this.lineThickness,4);r=Boolean(e(g.linedashed,0));n=e(g.linedashlen,
5);o=e(g.linedashgap,4);b.color={FCcolor:{color:s,alpha:ba}};b.lineWidth=q;b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,g.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,g.useforwardsteps,1));N=e(g.drawanchors,g.showanchors);for(j=p=0;p<Da;p+=1)i=c[p],i.vline?A.addVline(ja,i,na,d):(f=ua.getCleanValue(i.value),t=e(i.showlabel,g.showlabels,1),t=K(!t?B:aa(i.label,i.name)),A.addXaxisCat(ja,na,na,t),na+=1,E=z(h(i.color,s)),C=h(i.alpha,ba),k=e(i.dashed,
r)?I(n,o,q):void 0,l={opacity:C/100},v=e(i.anchorsides,g.anchorsides,0),la=e(i.anchorstartangle,g.anchorstartangle,90),x=e(i.anchorradius,g.anchorradius,this.anchorRadius,3),Z=z(h(i.anchorbordercolor,g.anchorbordercolor,s)),ha=e(i.anchorborderthickness,g.anchorborderthickness,this.anchorBorderThickness,1),H=z(h(i.anchorbgcolor,g.anchorbgcolor,w.anchorBgColor[fa])),pa=h(i.anchoralpha,g.anchoralpha,qa),ea=h(i.anchorbgalpha,g.anchorbgalpha,pa),T=N===void 0?C!=0:!!N,b.data.push(U(this.getPointStub(i,
f,t,d),{y:f,color:{FCcolor:{color:E,alpha:C}},shadow:l,dashStyle:k,valuePosition:h(i.valueposition,a.valuePosition),marker:{enabled:!!T,fillColor:{FCcolor:{color:H,alpha:ea*pa/100+B}},lineColor:{FCcolor:{color:Z,alpha:pa}},lineWidth:ha,radius:x,startAngle:la,symbol:ka(v)},tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(d,f),j+=1);wa.catCount=na;return b},defaultZeroPlaneHighlighted:!1},n);J("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,point:function(a,c,g,d,f){var a=f.chart,
p=g.length,t=f.xAxis,i=f[W],j=f.chart.paletteIndex,k=i.axisGridManager,i=i.x,l=f[W].numberFormatter,n=0,o,E,C,q,r,s,N,ba,T,v,ha,Z,x,H,pa,ea,la,Da,ja,A,na,wa,fa;q=h(d.plotfillcolor,d.areabgcolor,R(d.palettecolors)?f.colors[0]:w.plotFillColor[j]).split(ma)[0];wa=ma+(e(d.useplotgradientcolor,1)?M(d.plotgradientcolor,w.plotGradientColor[j]):B);r=h(d.plotfillalpha,d.areaalpha,this.isStacked?qa:"90");s=e(d.plotfillangle,270);N=h(d.plotbordercolor,d.areabordercolor,R(d.palettecolors)?f.colors[0]:w.plotBorderColor[j]).split(ma)[0];
ba=d.showplotborder==oa?oa:h(d.plotborderalpha,d.plotfillalpha,d.areaalpha,qa);o=e(d.plotborderangle,270);E=Boolean(e(d.plotborderdashed,0));x=e(d.plotborderdashlen,5);la=e(d.plotborderdashgap,4);Da=e(d.plotborderthickness,d.areaborderthickness,1);fa=c.fillColor={FCcolor:{color:q+wa.replace(/,+?$/,""),alpha:r,ratio:Qa,angle:s}};c.lineWidth=Da;c.dashStyle=E?I(x,la,Da):void 0;c.lineColor={FCcolor:{color:N,alpha:ba,ratio:qa,angle:o}};c.step=h(this.stepLine,c.step);c.drawVerticalJoins=Boolean(e(c.drawVerticalJoins,
d.drawverticaljoins,1));c.useForwardSteps=Boolean(e(c.useForwardSteps,d.useforwardsteps,1));la=Boolean(e(d.drawanchors,d.showanchors,1));for(Da=E=0;E<p;E+=1)x=g[E],x.vline?k.addVline(t,x,n,f):(o=l.getCleanValue(x.value),C=e(x.showlabel,d.showlabels,1),C=K(!C?B:aa(x.label,x.name)),k.addXaxisCat(t,n,n,C),n+=1,T=e(x.anchorsides,d.anchorsides,0),Z=e(x.anchorstartangle,d.anchorstartangle,90),v=e(x.anchorradius,d.anchorradius,3),ha=z(h(x.anchorbordercolor,d.anchorbordercolor,N)),ja=e(x.anchorborderthickness,
d.anchorborderthickness,1),H=z(h(x.anchorbgcolor,d.anchorbgcolor,w.anchorBgColor[j])),pa=h(x.anchoralpha,d.anchoralpha,this.anchorAlpha,oa),ea=h(x.anchorbgalpha,d.anchorbgalpha,pa),A=R(x.color),na=e(x.alpha),A=A!==void 0||na!==void 0?{FCcolor:{color:A?z(A)+wa:q,alpha:void 0===na?b(na)+B:r,ratio:Qa,angle:s}}:fa,na={opacity:Math.max(na,ba)/100,inverted:!0},c.data.push(U(this.getPointStub(x,o,C,f),{y:o,shadow:na,color:A,valuePosition:h(x.valueposition,a.valuePosition),marker:{enabled:la,fillColor:{FCcolor:{color:H,
alpha:ea*pa/100+B}},lineColor:{FCcolor:{color:ha,alpha:pa}},lineWidth:ja,radius:v,symbol:ka(T),startAngle:Z},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(f,o)})),Da+=1);i.catCount=n;return c}},n);var H=i.getDataParser={column:function(a,c,g){var d=a[W],f=c.borderWidth;return function(p,t,i){var j=b(h(p.alpha,c.alpha)).toString(),k={opacity:j/100},l=c.isBar,n=c.fillAangle,j=x(h(p.color,c.color)+c.plotgradientcolor,j,h(p.ratio,c.ratio),i<0?l?180-n:360-n:n,c.isRoundEdges,
c.plotBorderColor,Math.min(j,b(c.plotBorderAlpha)).toString(),l,c.is3d),l=e(p.dashed,c.dashed)?I(h(p.dashlen,c.dashLen),h(p.dashgap,c.dashGap),f):void 0,p=g.getPointStub(p,i,d.oriCatTmp[t],a,c,c.showValues,c.yAxis);p.y=i;p.shadow=k;p.color=j[0];p.borderColor=j[1];p.borderWidth=f;p.use3DLighting=c.use3DLighting;p.dashStyle=l;p.tooltipConstraint=g.tooltipConstraint;return p}},line:function(a,b,c){var g=a[W];return function(d,f,p){var t=h(d.alpha,b.lineAlpha),i={opacity:t/100},j=h(d.anchoralpha,b.anchorAlpha),
f=c.getPointStub(d,p,g.oriCatTmp[f],a,b,b.showValues,b.yAxis);f.y=p;f.shadow=i;f.dashStyle=e(d.dashed,b.lineDashed)?I(b.lineDashLen,b.lineDashGap,b.lineThickness):void 0;f.color={FCcolor:{color:z(h(d.color,b.lineColor)),alpha:t}};f.valuePosition=h(d.valueposition,b.valuePosition);f.marker={enabled:b.drawAnchors===void 0?t!=0:!!b.drawAnchors,fillColor:{FCcolor:{color:z(h(d.anchorbgcolor,b.anchorBgColor)),alpha:(h(d.anchorbgalpha,b.anchorBgAlpha)*j/100).toString()}},lineColor:{FCcolor:{color:z(h(d.anchorbordercolor,
b.anchorBorderColor)),alpha:j}},lineWidth:e(d.anchorborderthickness,b.anchorBorderThickness),radius:e(d.anchorradius,b.anchorRadius),symbol:ka(e(d.anchorsides,b.anchorSides)),startAngle:h(d.anchorstartangle,b.anchorAngle)};return f}},area:function(a,b,c){var g=a[W];return function(d,f,p){var t=h(d.alpha,b.fillAlpha),i={opacity:Math.max(t,b.lineAlpha)/100,inverted:!0},j=h(d.anchoralpha,b.anchorAlpha),f=c.getPointStub(d,p,g.oriCatTmp[f],a,b,b.showValues,b.yAxis);f.y=p;f.shadow=i;f.color={FCcolor:{color:z(h(d.color,
b.fillColor)),alpha:t}};f.valuePosition=h(d.valueposition,b.valuePosition);f.marker={enabled:b.drawAnchors,fillColor:{FCcolor:{color:z(h(d.anchorbgcolor,b.anchorBgColor)),alpha:(h(d.anchorbgalpha,b.anchorBgAlpha)*j/100).toString()}},lineColor:{FCcolor:{color:z(h(d.anchorbordercolor,b.anchorBorderColor)),alpha:j}},lineWidth:e(d.anchorborderthickness,b.anchorBorderThickness),radius:e(d.anchorradius,b.anchorRadius),symbol:ka(e(d.anchorsides,b.anchorSides)),startAngle:h(d.anchorstartangle,b.anchorAngle)};
f.events={click:b.getLink};return f}}};J("mscolumn2dbase",{point:function(a,b,c,g,d,f,p,t,i){var m;var a=!1,j=c.data||[],k=d[W],l=h(b.type,this.defaultSeriesType),n=d.plotOptions[l]&&d.plotOptions[l].stacking,o=h(this.isValueAbs,k.isValueAbs,!1),E=e(b.yAxis,0),C=d[W].numberFormatter,q=d.chart.paletteIndex,r,s;s=d._FCconf.isBar;if(!n)b.columnPosition=e(i,t,p);b.name=R(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;b.color=h(c.color,d.colors[p%d.colors.length]).split(ma)[0].replace(/^#?/g,
"#");i=/3d$/.test(d.chart.defaultSeriesType);s=h(360-g.plotfillangle,s?180:90);r<0&&(s=360-s);m=b._dataParser=H.column(d,{seriesname:b.name,color:h(c.color,d.colors[p%d.colors.length]),alpha:h(c.alpha,g.plotfillalpha,qa),plotgradientcolor:ma+(e(g.useplotgradientcolor,1)?M(g.plotgradientcolor,w.plotGradientColor[q]):B),ratio:h(c.ratio,g.plotfillratio),fillAangle:s,isRoundEdges:d.chart.useRoundEdges,plotBorderColor:h(g.plotbordercolor,i?fb:w.plotBorderColor[q]).split(ma)[0],plotBorderAlpha:g.showplotborder==
oa||i&&g.showplotborder!=da?oa:h(g.plotborderalpha,qa),isBar:this.isBar,is3d:i,dashed:e(c.dashed,g.plotborderdashed,0),dashLen:e(c.dashlen,g.plotborderdashlen,5),dashGap:e(c.dashgap,g.plotborderdashgap,4),borderWidth:h(g.plotborderthickness,da),showValues:e(c.showvalues,k.showValues),yAxis:E,use3DLighting:e(g.use3dlighting,1),_sourceDataset:c},this),c=m;for(g=0;g<f;g+=1)(p=j[g])?(r=C.getCleanValue(p.value,o),r===null?b.data.push({y:null}):(a=!0,p=c(p,g,r),b.data.push(p),p.previousY=this.pointValueWatcher(d,
r,E,n,g,t,l))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"column"},Ga);J("mslinebase",{hasVDivLine:!0,point:function(a,b,c,g,d,f,p){var m;var a=!1,t,i;t=d.chart;var j=c.data||[];i=d[W];var k=h(b.type,this.defaultSeriesType),l=d.plotOptions[k]&&d.plotOptions[k].stacking,n=h(this.isValueAbs,i.isValueAbs,!1),o=e(b.yAxis,0),E=this.numberFormatter,p=z(h(c.color,g.linecolor,d.colors[p%d.colors.length])),C=h(c.alpha,g.linealpha,qa),q=e(g.showshadow,
this.defaultPlotShadow,1),r=e(c.drawanchors,c.showanchors,g.drawanchors,g.showanchors),s=e(c.anchorsides,g.anchorsides,0),N=e(c.anchorstartangle,g.anchorstartangle,90),ba=e(c.anchorradius,g.anchorradius,3),T=z(h(c.anchorbordercolor,g.anchorbordercolor,p)),v=e(c.anchorborderthickness,g.anchorborderthickness,1),ha=z(h(c.anchorbgcolor,g.anchorbgcolor,w.anchorBgColor[d.chart.paletteIndex])),x=h(c.anchoralpha,g.anchoralpha,qa),Z=h(c.anchorbgalpha,g.anchorbgalpha,x);b.name=R(c.seriesname);if(e(c.includeinlegend)===
0||b.name===void 0||C==0&&r!==1)b.showInLegend=!1;b.marker={fillColor:{FCcolor:{color:ha,alpha:Z*x/100+B}},lineColor:{FCcolor:{color:T,alpha:x+B}},lineWidth:v,radius:ba,symbol:ka(s),startAngle:N};b.color={FCcolor:{color:p,alpha:C}};b.shadow=q?{opacity:q?C/100:0}:!1;b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,g.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,g.useforwardsteps,1));b.lineWidth=e(c.linethickness,g.linethickness,2);m=b._dataParser=
H.line(d,{seriesname:b.name,lineAlpha:C,anchorAlpha:x,showValues:e(c.showvalues,i.showValues),yAxis:o,lineDashed:Boolean(e(c.dashed,g.linedashed,0)),lineDashLen:e(c.linedashlen,g.linedashlen,5),lineDashGap:e(c.linedashgap,g.linedashgap,4),lineThickness:b.lineWidth,lineColor:p,valuePosition:h(c.valueposition,t.valuePosition),drawAnchors:r,anchorBgColor:ha,anchorBgAlpha:Z,anchorBorderColor:T,anchorBorderThickness:v,anchorRadius:ba,anchorSides:s,anchorAngle:N,_sourceDataset:c},this),t=m;for(g=0;g<f;g+=
1)(i=j[g])?(c=E.getCleanValue(i.value,n),c===null?b.data.push({y:null}):(a=!0,b.data.push(t(i,g,c)),this.pointValueWatcher(d,c,o,l,g,0,k))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},Ga);J("msareabase",{hasVDivLine:!0,point:function(a,b,c,g,d,f,p){var m;var a=!1,t=d.chart,i=c.data||[],j=d[W],k=h(b.type,this.defaultSeriesType),l=d.plotOptions[k]&&d.plotOptions[k].stacking,n=h(this.isValueAbs,
j.isValueAbs,!1),o=d.chart.paletteIndex,E=e(b.yAxis,0),C=d[W].numberFormatter,q=h(c.color,g.plotfillcolor,d.colors[p%d.colors.length]).split(ma)[0].replace(/^#?/g,"#").split(ma)[0],r=h(c.alpha,g.plotfillalpha,g.areaalpha,this.isRadar?"50":this.isStacked?qa:"70"),s=e(g.plotfillangle,270),p=h(c.plotbordercolor,g.plotbordercolor,g.areabordercolor,this.isRadar?d.colors[p%d.colors.length]:"666666").split(ma)[0],N=h(c.showplotborder,g.showplotborder)==oa?oa:h(c.plotborderalpha,g.plotborderalpha,c.alpha,
g.plotfillalpha,g.areaalpha,"95"),ba=e(g.plotborderangle,270),T=e(c.anchorsides,g.anchorsides,0),v=e(c.anchorstartangle,g.anchorstartangle,90),ha=e(c.anchorradius,g.anchorradius,3),x=z(h(c.anchorbordercolor,g.anchorbordercolor,q)),Z=e(c.anchorborderthickness,g.anchorborderthickness,1),pa=z(h(c.anchorbgcolor,g.anchorbgcolor,w.anchorBgColor[o])),la=e(c.anchoralpha,g.anchoralpha,this.anchorAlpha,0),ea=e(c.anchorbgalpha,g.anchorbgalpha,la);this.isRadar||(q+=ma+(e(g.useplotgradientcolor,1)?M(g.plotgradientcolor,
w.plotGradientColor[o]):B),q=q.replace(/,+?$/,""));b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,g.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,g.useforwardsteps,1));b.name=h(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;b.fillColor={FCcolor:{color:q,alpha:r,ratio:Qa,angle:s}};b.color=q;b.shadow={opacity:e(g.showshadow,1)?N/100:0};b.lineColor={FCcolor:{color:p,alpha:N,ratio:qa,angle:ba}};b.lineWidth=h(c.plotborderthickness,
g.plotborderthickness,1);b.dashStyle=Boolean(e(c.dashed,g.plotborderdashed,0))?I(e(c.dashlen,g.plotborderdashlen,5),e(c.dashgap,g.plotborderdashgap,4),b.lineWidth):void 0;b.marker={fillColor:{FCcolor:{color:pa,alpha:ea*la/100+B}},lineColor:{FCcolor:{color:x,alpha:la+B}},lineWidth:Z,radius:ha,symbol:ka(T),startAngle:v};m=b._dataParser=H.area(d,{seriesname:b.name,lineAlpha:N,anchorAlpha:la,showValues:e(c.showvalues,j.showValues),yAxis:E,fillColor:q,fillAlpha:r,valuePosition:h(c.valueposition,t.valuePosition),
drawAnchors:Boolean(e(g.drawanchors,g.showanchors,1)),anchorBgColor:pa,anchorBgAlpha:ea,anchorBorderColor:x,anchorBorderThickness:Z,anchorRadius:ha,anchorSides:T,anchorAngle:v,getLink:this.linkClickFN,_sourceDataset:c},this),c=m;for(t=0;t<f;t+=1)(j=i[t])?(g=j?C.getCleanValue(j.value,n):null,g===null?b.data.push({y:null}):(a=!0,j=c(j,t,g),b.data.push(j),j.previousY=this.pointValueWatcher(d,g,E,l,t,0,k))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"area",
defaultPlotShadow:0},Ga);J("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",point:function(a,c,g,d,f,p,t){if(g.data){var i,j,k,l,n,o,E,C,q,r,N,ba,T,v,ha,x,Z,pa=!1,H,a=J[a];k=e(g.drawline,d.drawlines,0);l=e(g.drawprogressioncurve,0);var p=g.data,la=p.length,ea=e(g.showvalues,f[W].showValues),Da=this.numberFormatter,ja=e(g.showregressionline,d.showregressionline,0);c.zIndex=1;c.name=R(g.seriesname);if(e(g.includeinlegend)===0||c.name===void 0)c.showInLegend=
!1;if(k||l)j=z(h(g.color,f.colors[t%f.colors.length])),k=h(g.alpha,qa),l=e(g.linethickness,d.linethickness,2),n=Boolean(e(g.linedashed,g.dashed,d.linedashed,0)),o=e(g.linedashlen,d.linedashlen,5),E=e(g.linedashgap,d.linedashgap,4),c.color=s(h(g.linecolor,d.linecolor,j),e(g.linealpha,d.linealpha,k)),c.lineWidth=l,c.dashStyle=n?I(o,E,l):void 0;k=Boolean(e(g.drawanchors,g.showanchors,d.drawanchors,d.showanchors,1));l=e(g.anchorsides,d.anchorsides,t+3);n=e(g.anchorradius,d.anchorradius,3);t=z(h(g.anchorbordercolor,
g.color,d.anchorbordercolor,j,f.colors[t%f.colors.length]));j=e(g.anchorborderthickness,d.anchorborderthickness,1);o=z(h(g.anchorbgcolor,d.anchorbgcolor,w.anchorBgColor[f.chart.paletteIndex]));E=h(g.anchoralpha,g.alpha,d.anchoralpha,qa);q=h(g.anchorbgalpha,g.alpha,d.anchorbgalpha,E);h(g.anchorstartangle,d.anchorstartangle,90);c.marker={fillColor:this.getPointColor(o,qa),lineColor:{FCcolor:{color:t,alpha:E+B}},lineWidth:j,radius:n,symbol:ka(l)};if(ja){c.events={hide:this.hideRLine,show:this.showRLine};
var na={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},A=e(g.showyonx,d.showyonx,1),wa=z(h(g.regressionlinecolor,d.regressionlinecolor,t)),fa=e(g.regressionlinethickness,d.regressionlinethickness,j),d=b(e(g.regressionlinealpha,d.regressionlinealpha,E)),wa=s(wa,d)}for(i=0;i<la;i+=1)(C=p[i])?(d=Da.getCleanValue(C.y),Z=Da.getCleanValue(C.x),d===null?c.data.push({y:null,x:Z}):(pa=!0,H=a.getPointStub(C,d,Da.xAxis(Z),f,g,ea),r=e(C.anchorsides,l),N=e(C.anchorradius,n),ba=z(h(C.anchorbordercolor,
t)),T=e(C.anchorborderthickness,j),v=z(h(C.anchorbgcolor,o)),ha=h(C.anchoralpha,C.alpha,E),x=h(C.anchorbgalpha,q),c.data.push({y:d,x:Z,displayValue:H.displayValue,toolText:H.toolText,link:H.link,marker:{enabled:k,fillColor:{FCcolor:{color:v,alpha:x*ha/100+B}},lineColor:{FCcolor:{color:ba,alpha:ha}},lineWidth:T,radius:N,symbol:ka(r),startAngle:h(C.anchorstartangle,90)}}),this.pointValueWatcher(f,d,Z,ja&&na))):c.data.push({y:null});ja&&(g=this.getRegressionLineSeries(na,A,la),this.pointValueWatcher(f,
g[0].y,g[0].x),this.pointValueWatcher(f,g[1].y,g[1].x),f={type:"line",color:wa,showInLegend:!1,lineWidth:fa,enableMouseTracking:!1,marker:{enabled:!1},data:g,zIndex:0},c=[c,f])}if(!pa)c.showInLegend=!1;return c},categoryAdder:function(a,b){var c,g=0,d,f=b[W].x,p,t=b.xAxis,i,j;j=a.chart;var k=parseInt(j.labelstep,10),l=e(j.showlabels,1),n=h(j.xaxislabelmode,"categories").toLowerCase(),o=b[W].numberFormatter;b._FCconf.isXYPlot=!0;k=k>1?k:1;f.catOccupied={};if(n!=="auto"&&a.categories&&a.categories[0]&&
a.categories[0].category){j=a.categories[0];if(j.font)b.xAxis.labels.style.fontFamily=j.font;if((d=e(j.fontsize))!==void 0)d<1&&(d=1),b.xAxis.labels.style.fontSize=d+Ca,A(b.xAxis.labels.style);if(j.fontcolor)b.xAxis.labels.style.color=j.fontcolor.split(ma)[0].replace(/^\#?/,"#");c=h(j.verticallinecolor,w.divLineColor[b.chart.paletteIndex]);d=e(j.verticallinethickness,1);p=e(j.verticallinealpha,w.divLineAlpha[b.chart.paletteIndex]);var C=e(j.verticallinedashed,0),E=e(j.verticallinedashlen,4),q=e(j.verticallinedashgap,
2),r=s(c,p),N,ba,T;for(c=0;c<j.category.length;c+=1)i=j.category[c],p=o.getCleanValue(i.x),p!==null&&!i.vline&&(f.catOccupied[p]=!0,T=e(i.showlabel,i.showname,l),N=e(i.showverticalline,i.showline,i.sl,0),ba=e(i.linedashed,C),i=T===0||g%k!==0?B:K(aa(i.label,i.name)),t.plotLines.push({isGrid:!0,isCat:!0,width:N?d:0,color:r,dashStyle:I(E,q,d,ba),value:p,label:{text:i,style:t.labels.style,align:v,verticalAlign:sa,textAlign:v,rotation:0,x:0,y:0}}),this.pointValueWatcher(b,null,p),g+=1);if(n==="mixed")f.requiredAutoNumericLabels=
e(this.requiredAutoNumericLabels,1)}else f.requiredAutoNumericLabels=e(this.requiredAutoNumericLabels,1);f.adjustMinMax=!0},getPointColor:function(c,g){var d,e,c=z(c),g=b(g);d=f(c,70);e=a(c,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.4,cy:0.4,r:"100%",color:d+ma+e,alpha:g+ma+g,ratio:Qa,radialGradient:!0}}}},J.xybase);J("mscombibase",{series:function(a,b,c){var g,f,p,t,i=a.chart,j,k=[],l=[],n=[],o,C,E=b[W],q=this.isDual,r=0;b.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&
a.dataset.length>0){this.categoryAdder(a,b);t=E.oriCatTmp.length;g=0;for(f=a.dataset.length;g<f;g+=1)switch(p=a.dataset[g],o=q&&h(p.parentyaxis,"p").toLowerCase()==="s"?!0:!1,j={legendIndex:g,data:[]},o?(j.yAxis=1,C=aa(p.renderas,this.secondarySeriesType)):C=aa(p.renderas,this.defaultSeriesType),C=C.toLowerCase(),C){case "line":case "spline":j.type="line";k.push(J.mslinebase.point.call(this,c,j,p,i,b,t,g));break;case "area":case "splinearea":j.type="area";b.chart.series2D3Dshift=!0;n.push(J.msareabase.point.call(this,
c,j,p,i,b,t,g));break;case "column":case "column3d":l.push(J.mscolumn2dbase.point.call(this,c,j,a.dataset[g],i,b,t,g,void 0,r));r+=1;break;default:o?(j.type="line",k.push(J.mslinebase.point.call(this,c,j,p,i,b,t,g))):(l.push(J.mscolumn2dbase.point.call(this,c,j,a.dataset[g],i,b,t,g,void 0,r)),r+=1)}i.areaovercolumns!=="0"?(b.chart.areaOverColumns=!0,b.series=b.series.concat(l,n,k)):(b.chart.areaOverColumns=!1,b.series=b.series.concat(n,l,k));if(l.length===0)E.hasNoColumn=!0;else if(!this.isStacked){c=
0;for(g=l.length;c<g;c+=1)l[c].numColumns=g}this.configureAxis(b,a);a.trendlines&&d(a.trendlines,b.yAxis,b[W],q,this.isBar)}}},J.mscolumn2dbase)}]);
FusionCharts(["private","modules.renderer.js-renderer",function(){var k=this,i=k.hcLib,q=i.Raphael,B=i.chartAPI,d=window,h=document,R=q.type==="VML",e=i.BLANKSTRING,w="crisp",aa="rgba(192,192,192,"+(R?0.0020:1.0E-6)+")",M=Math.round,K=i.stubFN,W={pageX:0,pageY:0},U=parseFloat,I=parseInt,V=i.extend2,$=i.addEvent,ga=i.removeEvent,j=i.pluck,ia=i.pluckNumber,n=i.graphics.HEXtoRGB,r=i.setImageDisplayMode,l=i.falseFN,P=i.FC_CONFIG_STRING,X=/\s\bx\b=['"][^'"]+?['"]/ig,S=/\s\by\b=['"][^'"]+?['"]/ig,L=i.isArray=
function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,b=a.call([]);return function(c){return a.call(c)===b}}(),x=i.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(L(a))for(e=0;e<a.length;e+=1){if(b.call(c,a[e],e,a,d)===!1)return e}else if(!(a===null||a===void 0))for(e in a)if(b.call(c,a[e],e,a,d)===!1)return e},z=i.createElement,A=i.createContextMenu,c=i.toRaphaelColor=function(){var a={};return function(b){var c=(b=b||this)&&b.FCcolor||b,d=c.color,f=c.ratio,h=c.angle,
i=c.alpha,j=c.r,k=c.cx,l=c.cy,o=c.fx,q=c.fy,r=c.gradientUnits,s=1,v,x,w,z;if(typeof b==="string")return a[z="~"+b]||(a[z]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));d=d||e;if(!d)return v;z=[d,i,f,h,j,k,l,r,o,q].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[z])return a[z];f=f&&(f+e).split(",")||[];i=(i||i===0)&&(i+e).split(",")||[];if(d=d.split(","))if(v=e,d.length===1)w=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),v=i.length?"rgba("+n(w).join(",")+","+U(i[0])*0.01+")":w.replace(/^#?([a-f0-9]{3,6})/ig,
"#$1");else{b=0;for(x=d.length;b<x;b++)w=d[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(f[b])||(f[b]=U(f[b]),w+=":"+f[b],isNaN(f[b+1])||(f[b+1]=U(f[b+1])+f[b])),!isNaN(i[b])&&i[b]!==e&&(s=i[b]*0.01),d[b]="rgba("+n(w).join(",")+","+s+")",isNaN(f[b])||(d[b]=d[b]+":"+f[b]);v+=d.join("-");j!==void 0||o!==void 0||k!==void 0||c.radialGradient?v="xr("+[o,q,j,k,l,r].join(",")+")"+v:(h===void 0&&(h=0),v=360-U(h)%360+"-"+v)}return a[z]=v}}();i.gradientify=function(){return function(){return""}}();var b=i.hasTouch,
a=b?10:3,f=i.getSentenceCase,s=i.getCrispValues,o=i.getValidValue,ia=i.pluckNumber,v=i.getFirstValue,Q=i.hasSVG,sa=i.regex.dropHash,Aa=i.HASHSTRING,La=function(a){return a!==ta&&a!==null},J=function(a,b){a[1]===a[4]&&(a[1]=a[4]=M(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=M(a[2])+b%2/2);return a},ta,Ga=document.documentMode===8?"visible":"",w="crisp",ka=Math,ma=ka.sin,Ka=ka.cos,oa=ka.atan2,M=ka.round,da=ka.min,qa=ka.max,Ca=ka.abs,cb=ka.floor,Ma=ka.PI,$a=Ma/2,db=2*Ma,Qa=Ma+$a,fb=i.getFirstColor,eb=i.graphics.getDarkColor,
Za=i.graphics.getLightColor,aa="rgba(192,192,192,"+(Q?1.0E-6:0.0020)+")",Va=i.POSITION_TOP,Wa=i.POSITION_BOTTOM,Ra=i.POSITION_RIGHT,gb=i.POSITION_LEFT;q.ca.ishot=function(a){if(this.removed)return!1;var b=this.node,a=a||"";b.ishot=a;switch(this.type){case "group":for(b=this.bottom;b;)b.attr("ishot",a),b=b.next;break;case "text":if(q.svg)for(b=b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};q.addSymbol({printIcon:function(a,b,c){var d=c*0.75,e=c*0.5,f=c*0.33,h=M(a-c)+0.5,
i=M(b-c)+0.5,j=M(a+c)+0.5,c=M(b+c)+0.5,k=M(a-d)+0.5,l=M(b-d)+0.5,d=M(a+d)+0.5,n=M(b+e)+0.5,o=M(a+e)+0.5,q=M(b+f)+0.5,a=M(a-e)+0.5,f=M(b+f+f)+0.5;return["M",k,i,"L",d,i,d,l,k,l,"Z","M",h,l,"L",h,n,k,n,k,b,d,b,d,n,j,n,j,l,"Z","M",k,b,"L",k,c,d,c,d,b,"Z","M",o,q,"L",a,q,"M",o,f,"L",a,f]},exportIcon:function(a,b,c){var d=c*0.66,e=d*0.5,f=M(a-c)+0.5,h=M(b-c)+0.5,i=M(a+c)+0.5,c=M(b+c)-0.5,j=M(a-e)+0.5,k=b<c-3?c-3:M(b)+0.5,e=M(a+e)-0.5,l=M(a+d)-0.5,d=M(a-d)+0.5;return["M",f,k,"L",f,c,i,c,i,k,i,c,f,c,"Z",
"M",a,c-1,"L",d,b,j,b,j,h,e,h,e,b,l,b,"Z"]}});i.rendererRoot=B("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var g;var d=this,f=d.container=b.chart.renderTo,h=b.tooltip,i=d.layer;d.options=b;d.logic=a;d.definition=a.dataObj;d.smartLabel=a.smartLabel;d.numberFormatter=a.numberFormatter;d.fusionCharts=a.chartInstance;d.linkClickFN=a.linkClickFN;f.innerHTML=e;g=d.paper=q(f,f.offsetWidth||a.width,f.offsetHeight||a.height),f=g;d.chartWidth=f.width;d.chartHeight=
f.height;if(!d.elements)d.elements={};if(!i)i=d.layers={},i.background=i.background||f.group("background"),i.dataset=i.dataset||f.group("dataset").insertAfter(i.background),i.tracker=i.tracker||f.group("hot").insertAfter(i.dataset);h&&h.enabled!==!1&&f.tooltip(h.style,h.shadow);d.setMargins();d.drawBackground();d.drawButtons();d.drawGraph();b.legend&&b.legend.enabled&&d.drawLegend();d.drawCaption();d.drawLogo();d.setChartEvents();d.drawLabels&&d.drawLabels();x(b.callbacks,function(a){a.apply(d,this)},
[a]);x(d.callbacks,function(a){a.apply(d,this)},[a]);d.hasRendered=!0;c&&c(d)},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){this.paper&&(this.paper.remove(),delete this.paper)},onContainerClick:function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,a=a.data;(!b||!b.ishot||!a)&&a.linkClickFN.call(a,a)},setChartEvents:function(){var a=this.options.chart.link,b=this.container;ga(b,"click",this.onContainerClick);if(a)this.link=a,$(b,"click",
this.onContainerClick,this);this.paper.canvas.style.cursor=q.svg?a&&"pointer"||"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=this.elements;q.animation({opacity:0},1E3);a.messageText&&a.messageText.hide();a.messageVeil&&a.messageVeil.hide()},showMessage:function(a,b){var c=this.paper,d=this.options.chart,f=this.elements,h=f.messageText,i=f.messageVeil,j=c.width,k=c.height;if(!i)i=f.messageVeil=c.rect(0,0,j,k).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"});i.show().toFront().attr("cursor",
b?"pointer":"default")[b?"click":"unclick"](this.onOverlayMessageClick,this);if(!h)h=f.messageText=c.text(j/2,k/2,e).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana","font-size":10,"line-height":14,ishot:!0});a=a||e;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana","font-size":"10px"});c=this.smartLabel.getSmartText(a,j-(d.spacingRight||0)-(d.spacingLeft||0),k-(d.spacingTop||0)-(d.spacingBotton||0));h.attr({text:c.text,ishot:!0,cursor:b?"pointer":"default"})[b?"click":
"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){var a=this,b=a.logic.rendererId==="zoomline",c=a.paper,d=a.elements,e=a.toolbar||(a.toolbar=[]),f=a.menus||(a.menus=[]),h=a.layers,i=a.options,j=i[P],j=j&&j.outCanvasStyle||a.logic.outCanvasStyle||{},k=i.chart.toolbar||{},l=k.hDirection,n=b?1:k.vDirection,o=k.button||{};e.count=0;var r=o.scale,s=o.width*o.scale,v=o.height*o.scale,x=l*(o.spacing*o.scale+s),w=o.radius;e.y||(e.y=(b?0:k.y)+k.vMargin*n+da(0,v*n));e.x||
(e.x=k.x+k.hMargin*l-qa(0,s*l));var k=(b=i.exporting)&&b.buttons||{},i=k.exportButton&&k.exportButton.enabled!==!1,k=k.printButton&&k.printButton.enabled!==!1,z,H=h.buttons||(h.buttons=c.group("buttons"));e.add=function(a,b,g){var g=typeof g==="string"?{tooltip:g}:g||{},d=e.count===0?x-l*o.spacing*o.scale:x,d=g.x||(e.x+=d),f=g.tooltip||"";e.push(a=c.button(d,g.y||e.y,ta,a,{width:s,height:v,r:w,id:e.count++,verticalPadding:o.symbolHPadding*r,horizontalPadding:o.symbolHPadding},H).attr({ishot:!0,fill:[o.fill,
o.labelFill,o.symbolFill,o.hoverFill],stroke:[o.stroke,o.symbolStroke],"stroke-width":[o.strokeWidth,o.symbolStrokeWidth]}).tooltip(f).buttonclick(b));return a};if(i)f.push(z=d.exportMenu=A({chart:a,labels:{style:j,hover:{color:"rgba(255, 255, 255, 1)"}},attrs:{fill:"rgba(255, 255, 255, 1)"},hover:{fill:q.tintshade(j.color,0.7)},items:function(b){var c=[],d;for(d in b)c.push({text:b[d],onclick:function(b){return function(){a.logic.chartInstance.exportChart({exportFormat:b})}}(d)});return c}(b.exportformats)})),
d.exportButton=e.add("exportIcon",function(a,b){return function(){z.visible?z.hide():z.show({x:a,y:b+1})}}(e.x+s,e.y+v),{tooltip:"Export chart"});if(k)d.printButton=e.add("printIcon",function(){a.print()},{tooltip:"Print chart"})},setMargins:function(){var a=this.paper,b=this.options.chart||{};this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=M(b.marginTop)||0;this.canvasLeft=M(b.marginLeft)||0;this.canvasWidth=M(a.width-(b.marginLeft||0)-(b.marginRight||0));this.canvasHeight=M(a.height-
(b.marginTop||0)-(b.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var a=this.paper,b=this.layers,d=this.elements,e=b.background||(b.background=a.group("background")),b=d.background||(d.background=a.rect(e)),f=this.options.chart||{},h=U(f.borderWidth)||0,i=h*0.5,j=f.borderWidth||0,k=this.chartHeight,l=this.chartWidth,o=d.backgroundImage,n=f.bgSWF,q=f.bgSWFAlpha/100,s=f.bgImageDisplayMode,v=f.bgImageVAlign,
x=f.bgImageHAlign,w=f.bgImageScale,z=j+","+j+","+(l-j*2)+","+(k-j*2),A,H,y,u,D,O,m;a.canvas.style.backgroundColor=f.containerBackgroundColor;b.attr({x:i,y:i,width:a.width-h,height:a.height-h,stroke:f.borderColor,"stroke-width":h,fill:c(f.backgroundColor)});if(n)A=new Image,D=y=1,o=[],A.onload=function(){H=r(s,v,x,w,j,l,k,A);H["clip-rect"]=z;if(H.tileInfo){y=H.tileInfo.xCount;D=O=H.tileInfo.yCount;m=H.y;for(delete H.tileInfo;y;)if(O-=1,u?(o[void 0]=u.clone().attr({x:H.x,y:H.y}),e.appendChild(o[void 0])):
o[void 0]=u=a.image(n,e).attr(H).css({opacity:q}),H.y+=H.height,O===0)O=D,y-=1,H.x+=H.width,H.y=m}else o[0]=a.image(n,e),o[0].attr(H).css({opacity:q}).attr({visibility:Ga,"clip-rect":z})},A.src=n,d.backgroundImage=o},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,e=a.layers,h=a.options,i=a.elements,k=h.chart,h=a.datasets=h.series,l=v(k.rendererId,k.defaultSeriesType),o=e.background,o=e.dataset=e.dataset||b.group("dataset").insertAfter(o);e.tracker=e.tracker||b.group("hot").insertAfter(o);
var n,q;a.drawCanvas();a.drawAxes();if(!c)c=a.plots=a.plots||[],i.plots=c;n=0;for(q=h.length;n<q;n++){i=h[n]||{};e=a["updatePlot"+f(j(i.type,i.plotType,l))];b=a["drawPlot"+f(j(i.type,i.plotType,l))]||a.drawPlot;if(!(o=c[n]))c.push(o={index:n,items:[],data:i.data||[],name:i.name,userID:i.userID,setVisible:function(a){return function(b){var g=c[a],b=v(b,!g.visible),e={hcJSON:{series:[]}},f=e.hcJSON.series[a]||(e.hcJSON.series[a]={}),h=d.chartInstance.jsVars._reflowData,i=b?"visible":"hidden";x(g.graphics,
function(a){a.attr("visibility",i)});g.visible=b;f.visible=b;V(h,e,!0)}}(n),legendClick:function(b){return function(d,e){a["legendClick"+l]&&a["legendClick"+l](c[b],d,e)||a.legendClick&&a.legendClick(c[b],d,e)}}(n),realtimeUpdate:function(b,d,e){return function(f,h){d.call(a,c[b],e,{numUpdate:f,hasAxisChanged:h})}}(n,e||b,i)}),i.plot=o,i.legendClick=o.legendClick,i.setVisible=o.setVisible;b.call(a,o,i)}k.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:K,drawCanvas:K,drawAxes:K,drawScroller:function(){},
drawLegend:function(){var g;var a=this,b=a.options,c=a.paper,d=b.chart||{},h=b.legend,i=h.scroll,b={elements:{}},j=b.elements,k=a.layers.legend,l=j.box,o=j.caption,n=j.elementGroup,r=h.layout==="vertical",s=d.spacingTop,v=d.spacingBottom,x=d.spacingLeft,w=d.spacingRight,z=c.width,A=c.height,B=h.width,H=h.height,y=h.borderRadius,u=h.backgroundColor,D=h.borderColor,O=h.borderWidth||0,m=O*0.5,G=O*0.5+2,d=ia(h.padding,4),I=d*0.5,ca,U,F,Ea,L,J,K;r?(r=z-w-B,s=s+(A-v-s-H)*0.5+(h.y||0)):(r=x+(z-x-w-B)*0.5+
(h.x||0),s=A-v-H);v=q.crispBound(r,s,B,H,O);r=v.x;s=v.y;B=v.width;H=v.height;if(!k)k=a.layers.legend=c.group("legend").insertBefore(a.layers.tracker).translate(r,s);h.legendAllowDrag&&(U=r,F=s,k.css({cursor:"move"}).drag(function(a,b){Ea=J+a;L=K+b;Ea+B+G>z&&(Ea=z-B-G);L+H+G>A&&(L=A-H-G);Ea<G&&(Ea=G);L<G&&(L=G);k.translate(Ea-U,L-F);U=Ea;F=L},function(){J=U;K=F}));if(!l)l=j.box=c.rect(k);l.attr({x:0,y:0,width:B,height:H,r:y,stroke:D,"stroke-width":O,fill:u||"none",ishot:h.legendAllowDrag}).shadow(h&&
h.shadow);i&&i.enabled?(ca=H-d,l=","+B+","+ca,n=j.elementGroup=c.group("legenditems",k).attr({"clip-rect":"0,"+I+l}),g=j.scroller||(j.scroller=c.scroller(B-10+I-O,m,10,H-O,!1,{scrollPosition:i.scrollPosition||0,scrollRatio:(ca+d)/h.totalHeight,showButtons:!1,displayStyleFlat:i.flatScrollBars},k)),i=g,i.attr("fill",h.legendScrollBgColor).scroll(function(b){n.transform(["T",0,(ca-h.totalHeight)*b]);V(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):n=j.elementGroup=k;
if(h.title&&h.title.text!==e){if(!o)o=j.caption=c.text(n);o.attr({text:h.title.text,title:h.title.originalText||"",x:B*0.5,y:d,fill:h.title.style.color,"vertical-align":"top"}).css(h.title.style)}this["draw"+f(h.type||"point")+"LegendItem"](b)},drawPointLegendItem:function(a){var p;var g;var b=this.paper,d=this.options,e=d.series,f=d.chart.defaultSeriesType,d=d.legend,h=d.legendHeight,i=d.symbolPadding,k=d.textPadding||2,o=ia(d.padding,4),n=d.itemHiddenStyle,q=d.itemStyle,r=q.color,n=n&&n.color||
"#CCCCCC",s=d.symbolWidth,v=d.itemWidth,x=d.interactiveLegend!==!1,w=a.elements,z=w.elementGroup,a=a.item=[],w=w.item=[],A=[],B={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},H,y,u,D,O,m,G,I,ca,U,F,L,J,K;U=0;for(L=e.length;U<L;U+=1)if((u=e[U])&&u.showInLegend!==!1)if(m=u.type||f,u.legendType==="point"){u=u.data||[];F=0;for(I=u.length;F<I;F+=1)if(O=u[F]||{},O.showInLegend!==!1)O._legendType=m,A.push(O)}else switch(u._legendType=m,m){case "pie":case "pie3d":case "funnel":case "pyramid":A=
u.data;break;default:A.push(u)}A.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||0)||a.__i-b.__i});d.reversed&&A.reverse();e=d.initialItemX||0;f=d.initialItemY||0;U=0;for(L=A.length;U<L;U+=1)if(A[U].showInLegend!==!1)if(F={elements:{},hiddenColor:n,itemTextColor:r},a.push(F),w.push(F.elements),H=A[U],G=e+H._legendX+o,I=f+H._legendY-o,ca=H._legendH,y=H._legendType||m,u=H.visible!==!1,D=F.itemLineColor=c(H.color||{}),O=x?function(a){return function(){a.legendClick()}}(H):l,H.plot.legend=
F,F.elements.legendItemBackground=b.rect(G,I,v,ca,0,z).click(O).attr({fill:c(H.legendFillColor||aa),"stroke-width":1,stroke:c(H.legendBorderColor||"none"),cursor:q.cursor||"pointer",ishot:x}),F.elements.legendItemText=b.text(G+h+k-2,I+(H._legendTestY||0),H.name,z).css(q).click(O).attr({fill:u?r:n,"vertical-align":"top","text-anchor":"start",cursor:q.cursor||"pointer",title:H.originalText||"",ishot:x}),B[y]){y=I+i+s*0.5;if(H.lineWidth)K=F.elements.legendItemLine=b.path(["M",G+i,y,"L",G+i+s,y],z).click(O).attr({"stroke-width":H.lineWidth,
stroke:u?D:n,cursor:q.cursor||"pointer",ishot:x});if(H&&(J=H.marker)&&J.enabled!==!1)F.symbolStroke=c(j(J.lineColor&&(J.lineColor.FCcolor&&J.lineColor.FCcolor.color.split(",")[0]||J.lineColor),D)),J.fillColor&&J.fillColor.FCcolor?(y=V({},J.fillColor),y.FCcolor.alpha="100"):y=j(J.fillColor,D),F.symbolColor=c(y),H=s*0.5,G=G+i+H,y=I+i+H,K&&(H*=0.6),I=J.symbol.split("_"),D=I[0]==="spoke"?1:0,g=I[1]?F.elements.legendItemSymbol=b.polypath(I[1],G,y,H,J.startAngle,D,z):F.elements.legendItemSymbol=b.circle(G,
y,H,z),I=g,I.click(O).attr({cursor:q.cursor||"pointer",stroke:u?F.symbolStroke:n,fill:u?F.symbolColor:n,"stroke-width":1,ishot:x})}else I=this.getSymbolPath(G+i,I+i,s,s,y,H),F.symbolColor=c(I.color),F.symbolStroke=c(I.strokeColor),p=F.elements.legendItemSymbol=b.path(I.path,z).click(O).attr({"stroke-width":I.strokeWidth,stroke:u?F.symbolStroke:n,fill:u?F.symbolColor:n,cursor:q.cursor||"pointer",ishot:x}),I=p;d.reversed&&A.reverse()},drawCaption:function(){var g;var a=this.options.chart,b=this.options.title,
c=this.options.subtitle,d=this.paper,e=this.elements,f=this.layers,h=f.caption,i=e.caption,j=e.subcaption,k=b&&b.text,l=c&&c.text,o=(this.canvasLeft||0)+ia(this.canvasWidth,d.width)/2,n=b.x,q=c&&c.x;if((k||l)&&!h)h=f.caption=d.group("caption"),f.tracker?h.insertBefore(f.tracker):h.insertAfter(f.dataset);if(k){if(!i)i=e.caption=d.text(h);if(n===void 0)n=o,b.align="middle";i.css(b.style).attr({text:b.text,fill:b.style.color,x:n,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",
visibility:"visible",title:b.originalText||""})}else if(i)g=e.caption=i.remove(),i=g;if(l){if(!j)j=e.subcaption=d.text(h);if(q===void 0)q=o,c.align="middle";j.css(c.style).attr({text:c.text,title:c.originalText||"",fill:c.style.color,x:q,y:k?i.attrs.y+i.getBBox().height+2:b.y||a.spacingTop||0,"text-anchor":c.align||"middle","vertical-align":"top",visibility:"visible"})}else if(j)e.subcaption=j.remove();if(!k&&!l&&h)f.caption=h.remove()},drawLogo:function(){var a=this.paper,b=this.elements,c=this.options,
d=c.credits,e=c.chart||{},f=e.borderWidth||0,h=this.chartHeight,i=this.chartWidth,j=b.logoImage,k=this.layers.tracker,l=e.logoURL,o=e.logoAlpha/100,n=e.logoPosition,q=e.logoLink,s=e.logoScale,v=e.logoLeftMargin,x=e.logoTopMargin,w=f+","+f+","+(i-f*2)+","+(h-f*2),c={tr:{vAlign:Va,hAlign:Ra},bl:{vAlign:Wa,hAlign:gb},br:{vAlign:Wa,hAlign:Ra},cc:{vAlign:"middle",hAlign:"middle"}},z,H;this.logic&&d.enabled&&a.text().attr({text:d.text,x:6,y:h-4,"vertical-align":Wa,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",
title:d.title||""}).css({fontSize:9,fontFamily:"Verdana",cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:d.href})});if(l)z=new Image,(n=c[n])||(n={vAlign:Va,hAlign:gb}),z.onload=function(){H=r("none",n.vAlign,n.hAlign,s,f,i,h,z);j=a.image(l);k.appendChild(j);H["clip-rect"]=w;j.attr(H).translate(v,x).css({opacity:o});q&&j.css({cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:q})})},z.src=l,b.logoImage=j},legendClick:function(a,b,c){var d=a.legend,
e=d.elements.legendItemText,f=d.elements.legendItemSymbol,h=d.elements.legendItemLine,i=d.hiddenColor,l=d.itemLineColor,o=d.itemTextColor,n=d.symbolColor,q=d.symbolStroke,d=j(b,!a.visible);a.setVisible(b);c!==!0&&(b={datasetName:a.name,datasetIndex:a.index,id:a.userID,visible:d},k.raiseEvent("legenditemclicked",b,this.logic.chartInstance));d?(f.attr({fill:n||l,stroke:q}),e.attr({fill:o}),h&&h.attr({stroke:l})):(f.attr({fill:i,stroke:i}),e.attr({fill:i}),h&&h.attr({stroke:i}));if((a=this.datasets&&
this.datasets[a.index]&&this.datasets[a.index].relatedSeries)&&a instanceof Array&&a.length>0)for(e=a.length;e--;)f=parseFloat(a[e]),(f=this.plots[f])&&f.legend&&f.legendClick.call(f,d,!1)},exportChart:function(a){var b=this.elements,c=b.printButton,b=b.exportButton,d=this.fusionCharts,f=d.id,j=this.paper,l=this.options,a=typeof a==="object"&&function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(a)||{},o=V(V({},l.exporting),a),n=(o.exportformat||"png").toLowerCase(),a=o.exporthandler,
q=(o.exportaction||e).toLowerCase(),r=o.exporttargetwindow||e,s=o.exportfilename,v=o.exportparameters,x;if(!l.exporting||!l.exporting.enabled||!a)return!1;c&&c.attrs.visibility!="hidden"&&c.attr({visibility:"hidden"});b&&b.attrs.visibility!="hidden"&&b.attr({visibility:"hidden"});l=j.toSVG();c&&c.attr({visibility:"visible"});b&&b.attr({visibility:"visible"});l=l.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");n==="pdf"&&(l=l.replace(/<(\b[^s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/[^>]+?>)/ig,
function(a,b){var c=X.exec(a)||e,d=S.exec(a)||e;return a+"<"+b+c+d+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'}));c={charttype:d.src,stream:l,stream_type:"svg",meta_bgColor:o.bgcolor||"",meta_DOMId:d.id,meta_width:j.width,meta_height:j.height,parameters:["exportfilename="+s,"exportformat="+n,"exportaction="+q,"exportparameters="+v].join("|")};if(q==="download"){b=z("form",{method:"POST",action:a,target:r,style:"display:none;"},
h.body);for(x in c)z("input",{type:"hidden",name:x,value:c[x]},b);b.submit();h.body.removeChild(b);b=void 0}else x=new k.ajax(function(a){var b={};a.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,c,d,g){b[c]=g});i.raiseEvent("exported",b,d,[b])},function(a){a={statusCode:0,statusMessage:"failure",error:a,DOMId:f,width:j.width,height:j.height};i.raiseEvent("exported",a,d,[a])}),x.post(a,c);return!0},print:function(){var a=this,b=a.container,c=a.elements,e=c.printButton,f=c.exportButton,i=[],
j=b.parentNode,c=h.body,k=c.childNodes;if(!a.isPrinting)a.isPrinting=!0,x(k,function(a,b){if(a.nodeType==1)i[b]=a.style.display,a.style.display="none"}),e&&e.attrs.visibility!="hidden"&&e.attr({visibility:"hidden"}),f&&f.attrs.visibility!="hidden"&&f.attr({visibility:"hidden"}),c.appendChild(b),d.print(),setTimeout(function(){e&&e.attr({visibility:"visible"});f&&f.attr({visibility:"visible"});j.appendChild(b);x(k,function(a,b){if(a.nodeType==1)a.style.display=i[b]});a.isPrinting=!1},1E3)},getSymbolPath:function(a,
b,c,d,f,h){var i=["M"],j,k,l,o;j=(h.color&&fb(typeof h.color==="string"?h.color:h.color.FCcolor.color)||e).replace(sa,"");k=Za(j,40);o=eb(j,60).replace(sa,Aa);j={FCcolor:{color:j+","+j+","+k+","+j+","+j,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}};switch(f){case "column":case "dragcolumn":case "column3d":k=c*0.25;l=k*0.5;f=d*0.7;h=d*0.4;i=i.concat([a,b+d,"l",0,-f,k,0,0,f,"z","m",k+l,0,"l",0,-d,k,0,0,d,"z","m",k+l,0,"l",0,-h,k,0,0,h,"z"]);j.FCcolor.angle=270;break;case "bar":case "bar3d":k=
c*0.3;l=c*0.6;f=d/4;h=f/2;i=i.concat([a,b,"L",a+l,b,a+l,b+f,a,b+f,a,b+f+h,a+c,b+f+h,a+c,b+f+h+f,a,b+2*f+h,a,b+2*(f+h),a+k,b+2*(f+h),a+k,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":f=d*0.6;h=d*0.2;d*=0.8;i=i.concat([a,b+d,"L",a,b+f,a+c*0.3,b+h,a+c*0.6,b+f,a+c,b+h,a+c,b+d,"Z"]);j.FCcolor.angle=270;break;case "pie":case "pie3d":k=c/2;l=c*0.7;f=d/2;i=i.concat([a+k,b+f,"L",a+l,b,"A",k,f,0,0,0,a,b+f,"L",a+k,b+f,"M",a+k,b+f,"L",a,b+f,"A",k,f,0,0,0,a+l,b+d,"L",a+k,b+
f,"M",a+k,b+f,"L",a+l,b+d,"A",k+1,f+1,0,0,0,a+l,b,"Z"]);break;case "boxandwhisker2d":i=i.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);j=h.color;o="#000000";break;default:i=i.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),j.FCcolor.angle=270,j.FCcolor.ratio="0,70,30"}return{path:i,color:j,strokeWidth:0.5,strokeColor:o}}});var Na=function(a,b,c,d){this.axisData=a||{};b=this.renderer=b;a=b.paper;this.globalOptions=b.options;var e=b.layers,b=c?"y-axis":"x-axis",f=this.layerAboveDataset=e.layerAboveDataset,h=
this.layerBelowDataset=e.layerBelowDataset,e=f.bands||(f.bands=[]),i=e.length,j=h.bands||(h.bands=[]),k=j.length,l=f.lines||(f.lines=[]),o=l.length,n=h.lines||(h.lines=[]),q=n.length,f=f.labels||(f.labels=[]),r=f.length,h=h.labels||(h.labels=[]),s=h.length;this.isVertical=c;this.topBandGroup=this.topBandGroup||a.group(b+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||a.group(b+"-bands",this.layerBelowDataset);e.push(this.topBandGroup);i&&e[i].insertAfter(e[i-1]);j.push(this.belowBandGroup);
k&&j[k].insertAfter(j[k-1]);this.topLineGroup=this.topLineGroup||a.group(b+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||a.group(b+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||a.group(b+"-labels",this.layerAboveDataset);this.belowLabelGroup=this.belowLabelGroup||a.group(b+"-labels",this.layerBelowDataset);l.push(this.topLineGroup);o&&l[o].insertAfter(l[o-1]);n.push(this.belowLineGroup);q&&n[q].insertAfter(n[q-1]);f.push(this.topLabelGroup);r&&
f[r].insertAfter(f[r-1]);h.push(this.belowLabelGroup);s&&h[s].insertAfter(h[s-1]);this.isReverse=d;this.configure()};Na.prototype={configure:function(){var a=this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,e=b.options,f=e.chart,h=f.marginBottom,f=f.marginRight,i=b.canvasTop,j=b.canvasLeft,k=this.min=a.min,k=this.span=(this.max=a.max)-k,j=this.startX=ia(a.startX,j),i=this.startY=ia(a.startY,i),l=this.endX=ia(a.endX,b.canvasRight),a=this.endY=ia(a.endY,b.canvasBottom);this.startPixel=
d?c?a:l:c?i:j;c=this.pixelRatio=c?(a-i)/k:(l-j)/k;this.pixelValueRatio=d?-c:c;d=this.relatedObj={};d.marginObj={top:i,right:f,bottom:h,left:j};d.canvasObj={x:j,y:i,w:l-j,h:a-i,toX:l,toY:a};this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}};this.elements=this.elements||{};if(this.belowBandGroup)b.elements.axes=b.elements.axes||{},b.elements.axes.belowBandGroup=this.belowBandGroup,e&&e.chart&&e.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":b.elements["clip-canvas"]});
this.poi={}},draw:function(){var a=this.axisData,b=a&&a.plotLines||[],c=a&&a.plotBands||[],d=a&&a.tickLength,e=a&&a.tickWidth;a&&a.title&&this.drawAxisName();b&&b.length>0&&this.drawPlotLine();c&&c.length>0&&this.drawPlotBands();!isNaN(d)&&d!=0&&!isNaN(e)&&e!=0&&this.drawTicks()},scroll:function(){},setOffset:function(a,b){var c=i?this.startY:this.startX,d=i?this.endY:this.endX,e=this.cache.hashTable,f=this.primaryOffset=a||this.primaryOffset,h=this.secondaryOffset=b||this.secondaryOffset,i=this.isVertical,
j,k,l,o=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup],n,q,r;n=0;for(q=o.length;n<q;n+=1)if(l=o[n])j=i?h:f,k=i?f:h,l.attr({transform:"t"+j+","+k});if(!i)for(r in e)if(n=parseFloat(r)+f,n<c||n>d){h=e[r];n=0;for(q=h.elements.length;n<q;n+=1)i=h.elements[n],i.attr("visibility")==="visible"&&i.attr({visibility:"hidden"})}else if(n>c&&n<d){h=e[r];n=0;for(q=h.elements.length;n<q;n+=1)i=h.elements[n],i.attr("visibility")==="hidden"&&
i.attr({visibility:"visible"})}},update:function(){},drawTicks:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,f=this.layerBelowDataset,f=this.tickGroup=this.tickGroup||b.group("axis-ticks",f),h=this.relatedObj.canvasObj,i=a.offset,j=a.opposite,k=a.showAxis,l=a.tickInterval,n=a.tickLength,o=a.tickWidth,a=a.tickColor,q=c;if(e&&k){c=this.getAxisPosition(c);e=this.getAxisPosition(d);h=!j?h.x-i:h.toX+i;for(b.path(["M",h,c,"L",h,e],f).attr({stroke:a,"stroke-width":o});cb(q)<=
d;)i=this.getAxisPosition(q),c=!j?h-n:h+n,b.path(["M",h,i,"L",c,i],f).attr({stroke:a,"stroke-width":o}),q+=l}},getAxisPosition:function(a,b){var c;b?c=(a-this.startPixel)/this.pixelValueRatio+this.min:(a=this.axisData.reversed?this.min+(this.max-a):a,c=this.startPixel+(a-this.min)*this.pixelValueRatio);return c},drawPlotLine:function(){for(var b=this.renderer,d=b.paper,f=this.isVertical,h=+!f,i=this.belowLineGroup,j=this.topLineGroup,k=this.belowLabelGroup,l=this.topLabelGroup,n=this.axisData.plotLines||
[],o=this.lines=this.lines||[],q=this.labels=this.labels||[],r=this.relatedObj.canvasObj,s=this.globalOptions||{},v=this.elements||{},x=this.cache||{},z=x.hashTable,A=x.indexArr,B=f?this.startY:this.startX,I=f?this.endY:this.endX,H=this.primaryOffset,y=parseFloat(b.canvasBorderWidth)||0,u,D=(b.tooltip||{}).enabled!==!1,O,m,G,U,ca,L,F,K,V,S,M,$,Xa,R,Y,Q,da=0,P=0,W,va,ga,X,ma,Sa,Ia,Pa,oa=s.chart.xDepth||0,Fa,ra,sa,Ja,ka,Aa,Ca,La,ta,Ka,Ga,Ra=qa(n.length,qa(o.length,q.length)),Na,Ma,Qa,Za,x=[],$a,s=0;s<
Ra;s+=1){m=G=U=null;X=L="visible";m=o[s];G=q[s];ta=(F=n[s])&&F.width;M=(u=F&&F.label)&&u.style;if(!m&&F){if(ra=F.zIndex>3?j:i,ta>0.1)m=o[s]=d.path(ra).css(F.style),v.lines=v.lines||[],v.lines.push(m)}else if(!F&&(m||G))m&&m.remove(),G&&G.remove(),o&&(o[s]=null),q&&(q[s]=null),v&&v.lines&&(v.lines[s]=null),v&&v.labels&&(v.labels[s]=null);if(F){if(!G&&u&&!F.stepped){if(u.text!=e&&u.text!=" "){G=F.zIndex>=3?l:k;G=q[s]=d.text(G).css(M);if(m)m.label=G;v.labels=v.labels||[];v.labels.push(G)}}else if(G)if(u)if(u.text===
e||u.text===" ")G.isRotationSet=!1,G.remove(),delete G,q&&(q[s]=null),v&&v.labels&&(v.labels[s]=null);else{if(F&&F.stepped)G.isRotationSet=!1,G.remove(),delete G,q&&(q[s]=null),v&&v.labels&&(v.labels[s]=null)}else G.isRotationSet=!1,G.remove(),delete G,q&&(q[s]=null),v&&v.labels&&(v.labels[s]=null);if(!m&&!G)m=G=null;else if(F.value!==null){if(F)Ja=F.isVline,ka=F.isTrend,Aa=F.isGrid,O=F.tooltext,Ca=F.value,La=F.color,Ka=F.dashStyle,Ga=ka?F.to:null,K=F._isStackSum;if(u)V=u.text,S=M&&M.color,R=u.offsetScaleIndex||
0,Y=u.offsetScale,$=M&&M.fontSize,Xa=M&&M.lineHeight,Q=u.rotation,da=u.x||0,P=u.y||0,W=u.align,va=u.verticalAlign,ga=u.textAlign;$&&(Ma=$,Ma.indexOf("px")!==-1&&(Ma=Ma.replace("px",""),Ma=parseFloat(Ma)));Xa&&(Qa=Xa,Qa.indexOf("px")!==-1&&(Qa=Qa.replace("px",""),Qa=parseFloat(Qa)));f?(M=this.getAxisPosition(Ca),ca=ka?this.getAxisPosition(Ga)||M:M,sa=M!==ca?!0:!1,ra=["M",r.x,M,"L",r.toX,ca],Ja?b.logic.isBar&&(Ia=b.yAxis[R],!isNaN(Y)&&Y>=0&&Y<=1&&(Y=Ia.min+(Ia.max-Ia.min)*Y),Sa=Ia.getAxisPosition(Y||
Ca)+da):Sa=u?ma=this.axisData.isOpposite||W==="right"?r.toX+da:r.x+da:ma=this.axisData.isOpposite?r.toX:r.x):(ma=ka?this.getAxisPosition(Ca):this.getAxisPosition(Ca)||0,Sa=ka?this.getAxisPosition(Ga)||ma:ma,!ka&&!Ja&&oa>0&&(ma+=oa,Sa+=oa),sa=ma!==Sa?!0:!1,ra=["M"+ma,r.y,"L",Sa,r.toY],L=ma+H<B||ma+H>I?"hidden":L,Ja?(Ia=b.yAxis[R],!isNaN(Y)&&Y>=0&&Y<=1&&(Y=Ia.min+(Ia.max-Ia.min)*(1-Y)),M=Ia.getAxisPosition(Y||Ca)+P,M-=y+parseFloat(Fa)):this.axisData.opposite||va==="top"&&!Aa?(M=r.y+P,Na="bottom"):M=
r.toY+P,ca=M);if(G){if(u&&u.backgroundColor)u.labelBgClr=c({color:u.backgroundColor,alpha:u.backgroundOpacity*100});if(u&&u.borderColor)u.labelBorderClr=c({color:u.borderColor,alpha:"100"});Pa=ka?W==="left"?M:ca:ca;Ia=Sa-+!Ja*h*oa;Ia=Sa-+!Ja*h*oa+h*(da||0);Fa=(Fa=u&&u.borderWidth)?Fa.indexOf("px")!==-1?Fa.replace("px",""):1:1;Za=Ma?Ma*0.2:2;X=!f?Sa+H<B||Sa+H>I?"hidden":X:X;ca=ga==="left"?"start":ga==="right"?"end":"middle";K?(Na="bottom",Pa+=Ma*0.4,x.push(G)):h&&this.axisData.opposite?(Na=Wa,ca=Q?
"start":"middle"):Na=va;/\n|<br\s*?\/?>/ig.test(V)&&!Q&&Aa&&(Na=h&&this.axisData.opposite&&!Q?"middle":Va,Pa-=Qa);G.attr({transform:" "});G.attr({text:V,fill:S||La,"text-bound":u&&[u.labelBgClr,u.labelBorderClr,Fa,Za],title:u&&(u.originalText||""),x:Ia,y:Pa,"text-anchor":ca,"vertical-align":Na,visibility:X});Q&&G.rotate(Q,Ia,Pa);X=f?Pa.toString():Sa.toString();(u=z[X])?u.elements.push(G):(u={counter:s,keyProp:X,elements:[G]},z[X]=u,A.push(u))}m&&(m.attr({path:J(ra,ta),stroke:La,"stroke-width":ta,
"shape-rendering":!sa&&ta>=1?w:void 0,"stroke-dasharray":Ka?Ka:void 0,visibility:L}),D&&O&&ta<a&&L&&(U=d.path(ra).attr({stroke:aa,"stroke-width":a,ishot:!0})),U=U||m,D&&U.tooltip(O),X=f?M.toString():ma.toString(),(u=z[X])?u.elements.push(m):(u={counter:s,keyProp:X,elements:[m]},z[X]=u,A.push(u)));if(F&&F.isMinLabel)this.poi.min={label:G,index:s,line:m};else if(F&&F.isMaxLabel)this.poi.max={label:G,index:s,line:m};else if(F&&F.isZeroPlane)this.poi.zero={label:G,index:s,line:m};m=G=null}}}d=x.length;
$a=ia(b.options.plotOptions.series.animation.duration,0);if(d>0)for(s=0;s<d;s+=1)(b=x[s])&&function(a){a.hide();setTimeout(function(){a.show()},$a)}(b)},drawPlotBands:function(){var a=this.renderer,b=a.paper,d=this.isVertical,e=a.options.chart.hasScroll,f=this.belowBandGroup,h=this.topBandGroup,i=this.belowLabelGroup,j=this.topLabelGroup,k=this.axisData.plotBands||[],l=this.bands=this.bands||[],n=this.bandLabels=this.bandLabels||[],o=this.relatedObj.canvasObj,q=this.elements||{},r=this.cache||{},
s=r.hashTable,r=r.indexArr,v=d?this.startY:this.startX,x=d?this.endY:this.endX,w=this.primaryOffset,a=(a.tooltip||{}).enabled!==!1,z,H,y,u,D,A,m,G,B,I,U,F,L,J,M,K,V,S,$,Y,Q,R,da,P,aa,W,X,ga,ma,Ia,oa,ka,Fa,ra,sa=qa(k.length,l.length);for(ra=0;ra<sa;ra+=1){H=u="visible";y=l[ra];D=n[ra];L=(F=(A=k[ra])&&A.label)&&F.style;if(!y&&A){if(y=A.zIndex>3?h:f,ka=A.zIndex>3?j:i,y=l[ra]=b.rect(y),q.bands=q.bands||[],q.bands[ra]=y,F&&F.text)D=n[ra]=y.label=b.text(ka).css(L),q.labels=q.labels||[],q.labels[ra]=D}else if(!A&&
y){q.labels&&(n[ra]=q.labels[ra]=null);y.label&&y.label.remove();l[ra]=q.bands[ra]=null;y.remove();delete y;continue}if(A)z=A.tooltext,m=A.to,G=A.from,B=A.value,I=A.width,U=A.color;if(F)S=L&&L.fontSize,$=L&&L.lineHeight,J=F.borderWidth,M=F.align,K=F.x,V=F.y,R=F.text,da=F.originalText,P=L&&L.color,aa=F.backgroundColor,W=F.backgroundOpacity,X=F.borderColor,Y=F.textAlign,Q=F.verticalAlign,ga=F.borderType;S&&(A=S,A.indexOf("px")!==-1&&(A=A.replace("px",""),parseFloat(A)));$&&(A=$,A.indexOf("px")!==-1&&
(A=A.replace("px",""),parseFloat(A)));Fa=this.getAxisPosition(ia(m,B));oa=this.getAxisPosition(ia(G,B));L=d?o.x:oa;A=d?Fa:o.y;ka=d?o.w:(!this.axisData.reversed?Fa-oa:oa-Fa)||I||1;Fa=d?(!this.axisData.reversed?oa-Fa:Fa-oa)||I||1:o.h;oa=L+ka;ka=Ca(ka);Fa<0&&(Fa=Ca(Fa),A-=Fa);u=e?!0:!d?L+w>x||oa+w<v?"hidden":u:u;y&&(y.attr({x:L,y:A,width:ka,height:Fa,fill:c(U),"stroke-width":0,visibility:u}),a&&z&&y.tooltip(z));if(D&&F){(u=J)&&u.indexOf("px")!==-1&&u.replace("px","");u=d?M==="right"?o.toX+K:o.x+K:L+
ka/2;y=d?A+Fa/2:o.toY+V;H=!d?u+w<v||u+w>x?"hidden":H:H;if(aa)ma=F.labelBgClr=c({color:aa,alpha:W*100});if(X)Ia=F.labelBorderClr=c({color:X,alpha:"100"});Y=Y==="left"?"start":Y==="right"?"end":"center";D.attr({text:R,title:da||"",fill:P,"text-bound":[ma,Ia,J,S*0.2,ga==="solid"?!1:!0],x:u,y:y,"text-anchor":Y,"vertical-align":Q,visibility:H});F=d?y.toString():u.toString();(H=s[F])?H.elements.push(D):(H={counter:ra,keyProp:F,elements:[D]},s[F]=H,r.push(H))}}},drawAxisName:function(){var g;var a=this.axisData,
b=a.title||{},d=b&&b.style,e=b.align,f=b.centerYAxisName||!1,h=this.renderer.paper,i=this.isVertical,j=this.relatedObj.canvasObj,k=ia(a.offset,0)+ia(b.margin,0),l=b.text||"",o=this.name||void 0,a=a.opposite,n=this.layerBelowDataset,n=n.nameGroup=n.nameGroup||h.group("axis-name",n),q=ia(b.rotation,!a?270:90),r=i?a?j.toX+k:j.x-k:(j.x+j.toX)/2,s,v,x,w,z;if(d)v=d.color,x=c({color:d.backgroundColor,alpha:100}),w=c({color:d.borderColor,alpha:100}),(g=(d=d.border)&&d.split(" "),d=g)&&d.length>0&&(z=d[0].indexOf("px")!=
-1?parseFloat(d[0].replace("px","")):parseFloat(d[0]));f=i?e==="low"?j.toY:f?(j.y+j.toY)/2:this.renderer.chartHeight/2:j.toY+k;!o&&l?o=this.name=h.text(n).css(b.style):!l&&o&&o.remove();if(!isNaN(q)&&q&&i)s=b.style.fontSize,s=s.indexOf("px")!=-1?s.replace("px",""):s,r=a?r+parseFloat(s):r-parseFloat(s);o&&o.attr({text:l,title:b.originalText||"",fill:v||"#000000","text-bound":[x,w,z,s*0.1],"text-anchor":e==="low"?!a?"start":"end":"middle","vertical-align":i?!q?"middle":"top":a?Wa:"top",transform:i?
"t"+r+","+f+"r"+q:"t"+r+","+f});this.elements.name=o},realtimeUpdateX:function(a){if(a>0){for(var b=this.axisData.plotBands,c=this.min+a,d,e=b.length;e--;)if((d=b[e])&&!d.isNumVDIV)d.value<c||d.from<c||d.to<c?b.splice(e,1):(d.value!==void 0&&(d.value-=a),d.from!==void 0&&(d.from-=a),d.to!==void 0&&(d.to-=a));this.drawPlotLine();this.drawPlotBands()}},realtimeUpdateY:function(a,b){var c=this.axisData,d=this.min=c.min=a,c=this.span=(this.max=c.max=b)-d,c=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/
c:this.relatedObj.canvasObj.w/c;this.pixelValueRatio=this.isReverse?-c:c;this.drawPlotLine();this.drawPlotBands()}};Na.prototype.constructor=Na;var bb=function(a,b,c,d){return oa(b-c[1]-d.top,a-c[0]-d.left)};B("renderer.cartesian",{drawCanvas:function(){var g;var a=this.options.chart||{},b=a.plotBackgroundColor,d=this.paper,e=this.elements,f=e.canvas,h=e.canvas3DBase,h=e.canvasBorder,i=e.canvasBg,j=this.canvasTop,k=this.canvasLeft,l=this.canvasWidth,o=this.canvasHeight,n=ia(a.plotBorderRadius,0),
i=a.plotBorderWidth,q=i*0.5,r=a.plotBorderColor,s=a.isBar,v=a.is3D,x=a.showCanvasBg,w=a.canvasBgDepth,z=a.showCanvasBase,A=a.canvasBaseColor3D,y=a.canvasBaseDepth,u=a.plotShadow,D=R&&i===0&&u&&u.enabled,B=a.xDepth||0,a=a.yDepth||0,m=this.layers,G=m.background,I=m.dataset;m.tracker=m.tracker||d.group("hot").insertAfter(I);m.datalabels=m.datalabels||d.group("datalabels").insertAfter(I);g=m.canvas=m.canvas||d.group("canvas").insertAfter(G),m=g;if(!h)e.canvasBorder=d.rect(k-q,j-q,l+i,o+i,n,m).attr({"stroke-width":i,
stroke:r,"stroke-linejoin":i>2?"round":"miter"}).shadow(u);e["clip-canvas"]=[qa(0,k-B),qa(0,j-a),qa(1,l+B*2),qa(1,o+a*2)];e["clip-canvas-init"]=[qa(0,k-B),qa(0,j-a),1,qa(1,o+a*2)];if(v){if(x)i=s?e.canvasBg=d.path(["M",k,",",j,"L",k+w*1.2,",",j-w,",",k+l-w,",",j-w,",",k+l,",",j,"Z"],m):e.canvasBg=d.path(["M",k+l,",",j,"L",k+l+w,",",j+w*1.2,",",k+l+w,",",j+o-w,",",k+l,",",j+o,"Z"],m),i.attr({"stroke-width":0,stroke:"none",fill:c(b)});if(z)h=s?e.canvas3DBase=d.cubepath(k-B-y,j+a,y,o,B,a,m):e.canvas3DBase=
d.cubepath(k-B,j+o+a,l,y,B,a,m),h.attr({stroke:"none","stroke-width":0,fill:A.replace(sa,Aa)})}if(!f&&b)e.canvas=d.rect(k,j,l,o,n,m).attr({"stroke-width":0,stroke:"none",fill:c(b)}).shadow(D)},drawAxes:function(){var a=this.logic,b=this.options,c=this.paper,d=this.layers,e=d.dataset,f=d.layerBelowDataset=d.layerBelowDataset||c.group("axisbottom"),h=d.layerAboveDataset=d.layerAboveDataset||c.group("axistop"),c=this.xAxis=[],d=this.yAxis=[];f.insertBefore(e);h.insertAfter(e);if(b.xAxis&&b.xAxis.length){e=
0;for(f=b.xAxis.length;e<f;e+=1)c[e]=this.xAxis[e]=new Na(b.xAxis[e],this,a.isBar)}else c[0]=this.xAxis[0]=new Na(b.xAxis,this,a.isBar);if(b.yAxis){e=0;for(f=b.yAxis.length;e<f;e+=1)d[e]=this.yAxis[e]=new Na(b.yAxis[e],this,!a.isBar,!a.isBar)}e=0;for(f=d.length;e<f;e+=1)d[e].draw();e=0;for(f=c.length;e<f;e+=1)c[e].draw()},drawScroller:function(){var a=this.options,b=this.paper,c=this.layers,d=this.xAxis["0"]||{},e=(d.axisData||{}).scroll||{},f=this.canvasTop,h=this.canvasLeft,i=this.canvasWidth,j=
this.canvasHeight,k=da(this.canvasBorderWidth,2),l,o,n,q,r,s,v,x,w,z,y,u,A,B,m=c.dataset,G=c.datalabels,I=c.tracker;q=c.layerAboveDataset;var U;if(e.enabled)U=c.scroll=c.scroll||b.group("scroll").insertAfter(q),q=e.scrollRatio,a=a[P].xAxisScrollPos||e.startPercent,r=e.viewPortMax,s=e.viewPortMin,o=e.vxLength,v=e.buttonWidth,x=e.height,w=e.padding,z=e.color,y=e.flatScrollBars,o=e.windowedCanvasWidth=d.getAxisPosition(o),l=e.fullCanvasWidth=d.getAxisPosition(r-s)-o,n=M(a*l),u=this.fusionCharts.jsVars._reflowData,
A={hcJSON:{_FCconf:{xAxisScrollPos:0}}},B=A.hcJSON._FCconf,c.scroller=b.scroller(h-k,f+j+w,i+k*2,x,!0,{showButtons:!0,displayStyleFlat:y,buttonWidth:v,scrollRatio:q,scrollPosition:a},U).data("fullCanvasWidth",l).data("windowedCanvasWidth",o).attr({"scroll-display-style":y,fill:z}).scroll(function(a){n=-M(a*l);m&&m.transform(["T",n,0]);G&&G.transform(["T",n,0]);I&&I.transform(["T",n,0]);d.setOffset&&d.setOffset(n);B.xAxisScrollPos=a;V(u,A,!0)});return e.enabled},finalizeScrollPlots:function(){var a=
this,c=a.container,d=a.elements,e=a.layers,f=e.scroller,h=e.dataset,j=e.datalabels,e=e.tracker,k,l={},o,n=a.xAxis["0"]||{},q=(n.axisData||{}).scroll||{},r=a.options[P].xAxisScrollPos||q.startPercent,s=q.fullCanvasWidth;q.enabled&&(h.attr({"clip-rect":d["clip-canvas"]}),j.attr({"clip-rect":d["clip-canvas"]}),e.attr({"clip-rect":d["clip-canvas"]}),d=function(c){var d=a.elements.canvas,e=k.left,h=k.top,j=c.type,p=b&&i.getTouchEvent(c)||W,e=c.layerX||p.layerX||(c.pageX||p.pageX)-e,c=c.layerY||p.layerY||
(c.pageY||p.pageY)-h;switch(j){case "dragstart":o=d.isPointInside(e,c);l.ox=o&&e||null;if(!o)return!1;break;case "dragend":o=!1;l={};break;default:if(!o)break;d=e-l.ox;l.ox=e;l.scrollPosition=f.attrs["scroll-position"]-d/s;f.attr({"scroll-position":l.scrollPosition})}},b&&(k=i.getPosition(c),c&&(ga(c,"dragstart drag dragend",d),$(c,"dragstart drag dragend",d))),r>0&&(c=-M(r*s),h&&h.transform(["T",c,0]),j&&j.transform(["T",c,0]),e&&e.transform(["T",c,0]),n.setOffset&&n.setOffset(c)))},drawPlotColumn:function(b,
d){var e=this,h=b.data,i=h.length,j=b.items,k=b.graphics=[],l=e.paper,o=e.logic,n=e.layers,r=e.options,s=e.elements,v=r.chart,x=(r.tooltip||{}).enabled!==!1,w=e.definition.chart,r=r.plotOptions.series,z=e.xAxis[d.xAxis||0],A=e.yAxis[d.yAxis||0],B=A.axisData.reversed,L=o.isLog,H=o.is3D,y=o.isStacked,u=o.isWaterfall,D=o.isCandleStick,O=v.hasScroll||!1,m=v.canvasBorderOpacity=q.color(v.plotBorderColor).opacity,G=e.canvasBorderWidth,m=v.isCanvasBorder=m!==0&&G>0,J;f(o.name);var o=isNaN(+r.animation)&&
r.animation.duration||r.animation*1E3,ca=d.numColumns||1,K=d.columnPosition||0,G=v.use3DLighting,F=d.visible===!1?"hidden":"visible",V=z.getAxisPosition(0),V=z.getAxisPosition(1)-V,S=r.groupPadding,$=r.maxColWidth,S=(1-(w&&w.plotspacepercent)*0.01)*V||da(V*(1-S*2),$*ca),w=S/ca,K=K*w-S/2,Q=A.max,R=A.min,ca=Q>0&&R>=0,S=Q<=0&&R<0,$=Q>0&&R<0,P=L||S||B&&ca?Q:ca?R:0;J=A.yBasePos=A.getAxisPosition(P);var W=ia(v.useRoundEdges,0),Y=r.dataLabels.style,za=n.dataset=n.dataset||l.group("dataset-orphan"),X=n.datalabels=
n.datalabels||l.group("datalabels").insertAfter(za),n=n.tracker,ga=e.canvasTop,qa=e.canvasLeft,va=e.canvasWidth,ma=e.canvasBottom,oa=e.canvasRight,ka,sa,Ia;parseInt(Y.lineHeight,10);var Aa,ta,Fa,ra,Ka,Ja,Ga,Ma,Na,Qa,Ra;X.hide();if(y)Ra=za.shadows||(za.shadows=l.group("shadows",za).toBack());ra=za.column||(za.column=l.group("columns",za));!D&&!H&&!O&&(ra.attrs["clip-rect"]||ra.attr({"clip-rect":s["clip-canvas"]}));u&&ra.toBack();if(H){sa=v.xDepth||0;Ia=v.yDepth||0;Y=ra.negative=ra.negative||l.group("negative-values",
ra);za=ra.column=ra.column||l.group("positive-values",ra);Na=ra.zeroPlane;if(!Na&&R<0&&Q>=0)Na=ra.zeroPlane=l.group("zero-plane",ra).insertBefore(za),ka=v.zeroPlaneColor,s.zeroplane=l.cubepath(qa-sa,J+Ia,va,1,sa,Ia,Na).attr({fill:[ka,!G],stroke:"none","stroke-width":1});if(!(Na=Y.data("categoryplots")))Y.data("categoryplots",Array(i)),Na=Y.data("categoryplots");if(!(ka=za.data("categoryplots")))za.data("categoryplots",Array(i)),ka=za.data("categoryplots");for(s=0;s<i;s+=1)Na[s]=Na[s]||l.group(Y),
ka[s]=ka[s]||l.group(za)}else Qa=ra;for(s=0;s<i;s+=1){Q=h[s];R=Q.y;v=Q.toolText;Ma=va=null;if(R===null){if(ta=j[s])Ma=ta.graphic,H||Ma.attr({height:0})}else{Aa=!1;za=ia(Q.x,s);Fa=Q.link;Y=U(Q.borderWidth)||0;Ga=Q._FCW*V;za=z.getAxisPosition(Q._FCX)||z.getAxisPosition(za)+K;ta=Q.previousY;Ka=A.getAxisPosition(ta||P);ra=A.getAxisPosition(R+(ta||0));Ja=Ca(ra-Ka);Ga=Ga||w;if(H){R<0&&(ra=Ka,Aa=!0);Qa=R<0?Na:ka;if(!(ta=j[s]))ta=j[s]={index:s,value:R,graphic:l.cubepath(Qa[s]),dataLabel:null,tracker:null,
hot:null};Ma=ta.graphic;Ma.attr({cubepath:[za-sa,J+Ia,Ga,0,sa,Ia],fill:[c(Q.color),!G],stroke:Y&&c(Q.borderColor)||"NONE","stroke-width":Y,visibility:F}).shadow(r.shadow&&Q.shadow,Ra).animate({cubepath:[za-sa,ra+Ia,Ga,Ja,sa,Ia]},o,"normal",function(){X.show()}).data("BBox",{height:Ja,width:Ga,x:za,y:ra});if(Fa||x){!y&&Ja<a&&(ra-=(a-Ja)/2,Ja=a);if(!ta.tracker)ta.tracker=l.cubepath(n);va=ta.tracker;va.attr({cubepath:[za-sa,ra+Ia,Ga,Ja,sa,Ia],cursor:Fa?"pointer":"",stroke:Y&&aa||"NONE","stroke-width":Y,
fill:aa,ishot:!!Fa,visibility:F}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(v).data("link",Fa);va._.cubetop.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(v).data("link",Fa);va._.cubeside.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(v).data("link",Fa)}y&&Aa&&(Ma.toBack(),va&&va.toBack())}else{Aa=!1;if(!L&&!B&&R<0||!L&&B&&R>0)ra=Ka,Aa=!0;B&&!$&&R>0&&(ra=Ka-Ja,Aa=!1);u&&R<0&&La(ta)&&
(ra-=Ja,Aa=!0);!D&&!O&&(I(ra)<=ga&&(Ja-=ga-ra-+m,ra=ga-+m),M(ra+Ja)>=ma&&(Ja-=M(ra+Ja)-ma+ +!!Y+ +m),Y<=1&&(I(za)<=qa&&(Ga+=za,za=qa-Y/2+ +!!Y-+m,Ga-=za-Y/2+ +!!Y),M(za+Ga)>=oa&&(za-=Y/2+ +!!Y,Ga=oa-za+Y/2-!!Y+ +m)));Ka=q.crispBound(za,ra,Ga,Ja,Y);za=Ka.x;ra=Ka.y;Ga=Ka.width;Ja=Ka.height;if(!D&&m&&(!La(ta)||u&&ta===R&&R===Q._FCY))if(S&&!B)J=ra-(ga-Y/2),Ja+=J,J=ra-=J;else if(L||ca||B&&S)Ja=ma-ra+Y/2,J=ra+Ja;u&&ta&&Y>0&&r.connectorOpacity!==0&&r.connectorWidth===1&&r.connectorDashStyle&&(Ja-=1,R<0&&
(ra+=1));Ja<=1&&(Ja=1,ra+=R<0?0:-Ja);d._columnWidth=Ga;if(!(ta=j[s]))ta=j[s]={index:s,value:R,width:Ga,graphic:l.rect(Qa),valueBelowPlot:Aa,dataLabel:null,tracker:null};Ma=ta.graphic;Ma.attr({x:za,y:J,width:Ga,height:0,r:W,fill:c(Q.color),stroke:c(Q.borderColor),"stroke-width":Y,"stroke-dasharray":Q.dashStyle,"stroke-linejoin":"miter",visibility:F}).shadow(r.shadow&&Q.shadow,Ra).animate({y:ra,height:Ja||1},o,"normal",function(){X.show()}).data("BBox",Ka);if(Fa||x){if(!ta.tracker)ta.tracker=l.rect(n);
!y&&Ja<a&&(ra-=(a-Ja)/2,Ja=a);va=ta.tracker;va.attr({x:za,y:ra,width:Ga,height:Ja,r:W,cursor:Fa?"pointer":"",stroke:aa,"stroke-width":Y,fill:aa,ishot:!!Fa,visibility:F}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(v).data("link",Fa)}}Fa=e.drawPlotColumnLabel(b,d,s,za,ra)}Fa&&k.push(Fa);Ma&&k.push(Ma);va&&k.push(va);e.drawTracker&&e.drawTracker.call(e,b,d,s)}b.visible=d.visible!==!1;return b},drawPlotColumnLabel:function(a,b,c,d,f,h){var g;var d=this.options,
i=this.logic,k=d.chart,l=this.paper,o=this.layers,d=d.plotOptions.series.dataLabels.style,n=k.rotateValues===1?270:0,q=this.canvasHeight,r=this.canvasTop,s=a.data[c],v=a.items[c],x=k.valuePadding+2,w=v.graphic,a=v.dataLabel,c=j(v.valueBelowPlot,s.y<0),z=i.isStacked,i=i.is3D,A=k.xDepth||0,B=k.yDepth||0,y=s.displayValue,b=b.visible===!1?"hidden":"visible",u=k.placeValuesInside,k=!1,h=h||o.datalabels;La(y)&&y!==e&&s.y!==null?(a?n&&a.rotate(360-n):(a=v.dataLabel=l.text().attr({text:y}).css(d),k=!0),o=
a.getBBox(),w=w.data("BBox"),l=w.height,g=v=n?o.width:o.height,o=g,o+=x,x=v*0.5+x,w=w.x+w.width*0.5,q=c?r+q-(f+l):f-r,z?(f=f+l*0.5+(B||0),w-=A):u?l>=o?(f+=c?l-x:x,s._valueBelowPoint=1,i&&(w-=A,f+=B)):q>=o?(f+=c?l+x:-x,i&&c&&(w-=A,f+=B)):(f+=c?l-x:x,s._valueBelowPoint=1,i&&(w-=A,f+=B)):q>=o?(f+=c?l+x:-x,i&&c&&(w-=A,f+=B)):(f+=c?l-x:x,s._valueBelowPoint=1,i&&(w-=A,f+=B)),a.attr({x:w,y:f,visibility:b}),n&&a.attr("transform","T0,0,R"+n),k&&h.appendChild(a),k&&j(d.backgroundColor,d.borderColor)!==e&&a.attr({"text-bound":[d.backgroundColor,
d.borderColor,1,2]})):a&&a.attr({text:e});return a},drawPlotFloatedcolumn:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotColumn3d:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotBar:function(b,d){var e=this,h=b.data,i=h.length,j=b.items,k=b.graphics=[],l=e.paper,o=e.logic,n=e.layers,r=e.options,s=e.elements,v=r.chart,x=(r.tooltip||{}).enabled!==!1,w,z=e.definition.chart,r=r.plotOptions.series,A=e.xAxis[d.xAxis||0],B=e.yAxis[d.yAxis||0],L=o.is3D,H=o.isStacked,y=v.canvasBorderOpacity=
q.color(v.plotBorderColor).opacity,u=e.canvasBorderWidth,y=v.isCanvasBorder=y!==0&&u>0;f(o.name);var o=isNaN(+r.animation)&&r.animation.duration||r.animation*1E3,D=d.numColumns||1,O=d.columnPosition||0,u=v.use3DLighting,m=d.visible===!1?"hidden":"visible",G=A.getAxisPosition(0),G=A.getAxisPosition(1)-G,J=r.groupPadding,ca=r.maxColWidth,G=(1-(z&&z.plotspacepercent)*0.01)*G||da(G*(1-J*2),ca*D),z=D=G/D,O=O*D-G/2,K=B.max,F=B.min,D=K<0&&F<0?K:K>0&&F>0?F:0,G=B.getAxisPosition(D),J=ia(v.useRoundEdges,0),
V=e.canvasTop,ca=e.canvasLeft,S=e.canvasHeight,Q=e.canvasRight,R,$,P,W,Y,za,X,ga,n=e.layers;Y=n.dataset=n.dataset||l.group("dataset-orphan");var qa=n.datalabels=n.datalabels||l.group("datalabels").insertAfter(Y),n=n.tracker,va,ka,ma,oa,sa;qa.hide();if(H)oa=Y.shadows||(Y.shadows=l.group("shadows",Y).toBack());P=Y.column=Y.column||l.group("bars",Y);if(L){R=v.xDepth||0;$=v.yDepth||0;Y=P.negative=P.negative||l.group("negative-values",P);za=P.column=P.column||l.group("positive-values",P);ka=P.zeroPlane;
if(!ka&&F<0&&K>=0)ka=P.zeroPlane=l.group("zero-plane",P).insertBefore(za),ga=v.zeroPlaneColor,s.zeroplane=l.cubepath(G-R,V+$,1,S,R,$,ka).attr({fill:[ga,!u],stroke:"none","stroke-width":0});if(!(ka=Y.data("categoryplots")))Y.data("categoryplots",Array(i)),ka=Y.data("categoryplots");if(!(ga=za.data("categoryplots")))za.data("categoryplots",Array(i)),ga=za.data("categoryplots");for(s=0;s<i;s+=1)ka[s]=ka[s]||l.group(Y),ga[s]=ga[s]||l.group(za)}else P.attrs["clip-rect"]||P.attr({"clip-rect":s["clip-canvas"]}),
ma=P;s=0;for(v=i-1;s<i;s+=1,v-=1){V=h[s];S=V.y;va=K=null;if(S===null){if(W=j[s])va=W.graphic,L||va.attr({width:0})}else{za=ia(V.x,s);F=V.link;w=V.toolText;Y=U(V.borderWidth)||0;za=A.getAxisPosition(za)+O;P=V.previousY;W=B.getAxisPosition(P||D);X=B.getAxisPosition(S+(P||0));P=Ca(X-W);S>0&&(X=W);if(L){ma=S<0?ka:ga;if(!(W=j[s]))W=j[s]={index:s,value:S,graphic:l.cubepath(ma[v]),dataLabel:null,tracker:null};va=W.graphic;va.attr({cubepath:[G-R,za+$,0,z,R,$],fill:[c(V.color),!u],stroke:Y&&c(V.borderColor)||
"NONE","stroke-width":Y,"stroke-dasharray":V.dashStyle,cursor:F?"pointer":"",visibility:m}).shadow(r.shadow&&V.shadow,oa).animate({cubepath:[X-R,za+$,P,z,R,$]},o,"normal",function(){qa.show()}).data("BBox",{height:z,width:P,x:X,y:za});if(F||x){!H&&P<a&&(X-=(a-P)/2,P=a);if(!W.tracker)W.tracker=l.cubepath(n);K=W.tracker;K.attr({cubepath:[X-R,za+$,P,z,R,$],cursor:F?"pointer":"",stroke:Y&&aa||"NONE","stroke-width":Y,fill:aa,ishot:!!F}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},
e)}).tooltip(w).data("link",F);K._.cubetop.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(w).data("link",F);K._.cubeside.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(w).data("link",F)}if(!H||H&&S<0)va.toBack(),K&&K.toBack()}else{I(X)<=ca&&(P+=X,X=ca-Y/2+ +!!Y-+y,P-=X-Y/2+ +!!Y);M(X+P)>=Q&&(X-=Y/2+ +!Y,P=Q-X+Y/2-+!!Y+ +y);sa=q.crispBound(X,za,P,z,Y);X=sa.x;za=sa.y;P=sa.width;z=sa.height;P<=1&&(P=1,X+=S<0?-P:0);if(!(W=j[s]))W=
j[s]={index:s,value:S,height:z,graphic:l.rect(ma),dataLabel:null,tracker:null};va=W.graphic;va.attr({x:G,y:za,width:0,height:z,r:J,fill:c(V.color),stroke:c(V.borderColor),"stroke-width":Y,"stroke-dasharray":V.dashStyle,"stroke-linejoin":"miter",cursor:F?"pointer":"",visibility:m}).shadow(r.shadow&&V.shadow,oa).animate({x:X,width:P||1},o,"normal",function(){qa.show()}).data("BBox",sa);if(F||x){!H&&P<a&&(X-=(a-P)/2,P=a);if(!W.tracker)W.tracker=l.rect(n);K=W.tracker;K.attr({x:X,y:za,width:P,height:z,
r:J,cursor:F?"pointer":"",stroke:aa,"stroke-width":Y,fill:aa,ishot:!!F}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(w).data("link",F)}}w=e.drawPlotBarLabel(b,d,s,X,za)}w&&k.push(w);va&&k.push(va);K&&k.push(K);e.drawTracker&&e.drawTracker.call(e,b,d,s)}b.visible=d.visible!==!1;return b},drawPlotBarLabel:function(a,b,c,d,f,h){var i=this.options,k=this.logic,l=i.chart,o=this.paper,n=this.layers,i=i.plotOptions.series.dataLabels.style,q=this.canvasLeft,r=this.canvasWidth,
s=a.data[c],v=a.items[c],x=l.valuePadding+2,w=v.graphic,a=v.dataLabel,c=s.y<0,z=k.isStacked,k=k.is3D,A=l.xDepth||0,B=l.yDepth||0,y=s.displayValue,b=b.visible===!1?"hidden":"visible",l=l.placeValuesInside,u=!1,h=h||n.datalabels;if(La(y)&&y!==e&&s.y!==null){if(!a)a=v.dataLabel=o.text(),u=!0;a.attr({text:y,title:s.originalText||"",fill:i.color}).css(i);o=a.getBBox();n=w.data("BBox");w=n.height;s=n.width;n=v=o.width;n+=x;f+=w*0.5;w=d+(c?0:s);x=v*0.5+x;d=c?d-q:q+r-(d+s);z?(w+=(c?s:-s)*0.5,w-=k?A:0,f+=
k?B:0):(l?s>=n?(w+=c?x:-x,k&&(w-=A,f+=B)):(w+=c?-x:x,k&&c&&(w-=A)):d>=n?(w+=c?-x:x,k&&c&&(w-=A,f+=A)):(w+=c?x:-x,k&&(w-=A,f+=B)),w>q+r&&(w=q+r-o.width*0.5-4),w<q&&(w=q+o.width*0.5+4));a.attr({x:w,y:f,visibility:b});u&&h.appendChild(a);u&&j(i.backgroundColor,i.borderColor)!==e&&a.attr({"text-bound":[i.backgroundColor,i.borderColor,1,2]})}else a&&a.attr({text:e});return a},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(b,d){var g;var e=this,h=e.paper,i=e.elements,
j=e.options,k=j.chart,l=e.logic,o=j.plotOptions.series,n=b.items,r=b.graphics=b.graphics||[],v,x=e.xAxis[d.xAxis||0],w=e.yAxis[d.yAxis||0],z=l.isWaterfall,A,B,I;A=0;var L=(j.tooltip||{}).enabled!==!1,H,j=isNaN(+o.animation)&&o.animation.duration||o.animation*1E3,y=k.xDepth||0,u=k.yDepth||0,D=k.series2D3Dshift,l=e.logic,O=d.step,m=d.drawVerticalJoins,G=d.useForwardSteps;f(l.name);var l=b.data,J=d.visible===!1?"hidden":"visible",K,V=l.length,F=x.getAxisPosition(0);v=x.getAxisPosition(1)-F;var F=v*V,
S=x.axisData.scroll||{},k=k.hasScroll||!1,P=o.connectNullData,R,M,Q,$,W,Y=null,X=o.connectorWidth=U(d.lineWidth),ga=d.color;o.connectorOpacity=q.color(ga).opacity;var ka,qa,va=o.connectorDashStyle=d.dashStyle,ma,oa,sa,ta,Ia=e.layers;K=Ia.dataset=Ia.dataset||h.group("dataset-orphan");var Aa=Ia.datalabels=Ia.datalabels||h.group("datalabels").insertAfter(K),Ca=Ia.tracker,Ia=i["clip-canvas-init"].slice(0),i=i["clip-canvas"].slice(0);B=w.axisData.reversed;I=w.max;H=w.min;B=w.getAxisPosition(I>0&&H>0?!B?
H:I:I<0&&H<0?!B?I:H:!B?0:I)+(D?u:0);var Fa,ra;w.yBasePos=B;if(z)A=(A=e.definition.chart)&&A.plotspacepercent,B=o.groupPadding,I=o.maxColWidth,A=(1-A*0.01)*v||da(v*(1-B*2),I*1),A/=2;Aa.hide();Fa=K.line=K.line||h.group("line-connector",K);ra=K.anchors=K.anchors||h.group("line-anchors",K);ra.hide();for(K=0;K<V;K+=1){B=l[K];$=B.y;H=B.toolText;ta=R=oa=I=null;v=n[K]={index:K,value:null,graphic:null,connector:null,dataLabel:null,tracker:null};if($===null)P===0&&(Y=null);else{Q=ia(B.x,K);R=B.link;d.relatedSeries===
"boxandwhisker"&&d.pointStart&&(Q+=d.pointStart);$=w.getAxisPosition($)+(D?u:0);Q=x.getAxisPosition(Q)-y;Q=s(Q,X,X).position;$=s($,X,X).position;if((ma=B.marker)&&ma.enabled)if(oa=ma.symbol.split("_"),sa=oa[0]==="spoke"?1:0,M=ma.radius,g=v.graphic=h.polypath(oa[1]||2,Q,$,M,ma.startAngle,sa,ra).attr({fill:c(ma.fillColor),"stroke-width":ma.lineWidth,stroke:c(ma.lineColor),cursor:R?"pointer":"",visibility:J}),oa=g,R||L)M<a&&(M=a),I=v.tracker=h.circle(Q,$,M,Ca).attr({cursor:R?"pointer":"",stroke:aa,"stroke-width":ma.lineWidth,
fill:aa,ishot:!!R,visibility:J}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(H).data("link",R);if(Y!==null)Y=["M",W,Y],z&&Y.push("m",-A,0),O?G?(Y.push("H",Q),z&&Y.push("h",A),m&&Y.push("V",$)):(m&&Y.push("V",$),Y.push("M",W,$,"H",Q)):Y.push("L",Q,$),ta=v.connector=h.path(Y,Fa).attr({"stroke-dasharray":qa,"stroke-width":X,stroke:c(ka||ga),"stroke-linecap":"round","stroke-linejoin":X>2?"round":"miter",visibility:J}).shadow(o.shadow&&B.shadow);R=v.dataLabel=e.drawPlotLineLabel(b,
d,K,Q,$);W=Q;Y=$;ka=B.color;qa=B.dashStyle||va}R&&r.push(R);oa&&r.push(oa);ta&&r.push(ta);I&&r.push(I);e.drawTracker&&e.drawTracker.call(e,b,d,K)}if(k)h=S.startPercent,i[2]=F+Ia[0],h===1&&(Ia[0]=i[2],i[0]=0);h=q.animation({"clip-rect":i},j,k?"easeIn":"normal",function(){Fa.attr({"clip-rect":null});ra.show();Aa.show()});Fa.attr({"clip-rect":Ia}).animate(z?h.delay(j):h);b.visible=d.visible!==!1;return b},drawPlotArea:function(b,d){var g;var e=this,f=e.paper,h=e.options,i=h.chart,j=e.logic,k=h.plotOptions.series,
l=e.elements,o=b.items,n=b.graphics=b.graphics||[],q=e.xAxis[d.xAxis||0],r=e.yAxis[d.yAxis||0],s=r.axisData.reversed,v=i.xDepth||0,x=i.yDepth||0,w=j.isStacked,z=(h.tooltip||{}).enabled!==!1,A,h=isNaN(+k.animation)&&k.animation.duration||k.animation*1E3,B=i.series2D3Dshift,j=e.definition.chart.drawfullareaborder==="0",y=b.data,u=d.visible===!1?"hidden":"visible",D,I=y.length,m=q.getAxisPosition(0),m=(q.getAxisPosition(1)-m)*I,G=q.axisData.scroll||{},i=i.hasScroll||!1,U=k.connectNullData,K,L,F,J,V,
S=r.max,Q=r.min,R=r.getAxisPosition(S>0&&Q<0?0:!s&&S>0&&Q>=0?Q:S)+(B?x:0),$=null,P,M,s=d.lineWidth,S=d.dashStyle,W=c(d.fillColor),Q=c(d.lineColor),X=0,da,ga,ma,ka=[],qa=[],oa=null,sa=[],ta=e.layers;D=ta.dataset=ta.dataset||f.group("dataset-orphan");var Aa=ta.datalabels=ta.datalabels||f.group("datalabels").insertAfter(D),oa=ta.tracker,ta=l["clip-canvas-init"].slice(0),l=l["clip-canvas"].slice(0),Ca,Fa,ra,Ga,Ja;r.yBasePos=R;Aa.hide();if(w)Ga=D.shadows||(D.shadows=f.group("shadows",D).toBack());Fa=D.area=
D.area||f.group("area",D);Ca=D.arealine=D.arealine||f.group("area-connector",D);ra=D.areaanchors=D.areaanchors||f.group("area-anchors",D);ra.hide();for(D=0;D<I;D+=1){K=y[D];J=K.y;A=ia(K.x,D);P=q.getAxisPosition(A)-v;ga=Ja=ma=null;if(J===null)U===0&&($=null,X>0&&(X===1?ka.splice(-8,8):(ka=ka.concat(qa),ka.push("Z")),qa=[])),o[D]={chart:e,index:D,value:J};else{L=K.link;A=K.toolText;F=K.previousY;V=(V=r.getAxisPosition(F)||null)||R;M=r.getAxisPosition(J+(F||0))+(B?x:0);if((da=K.marker)&&da.enabled)if(ga=
da.symbol.split("_"),F=da.radius,ga=f.polypath(ga[1]||2,P,M,F,da.startAngle,0,ra).attr({fill:c(da.fillColor),"stroke-width":da.lineWidth,stroke:c(da.lineColor),cursor:L?"pointer":"",visibility:u}),L||z)!w&&F<a&&(F=a),ma=f.circle(P,M,F,oa).attr({cursor:L?"pointer":"",stroke:aa,"stroke-width":da.lineWidth,fill:aa,ishot:!!L,visibility:u}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(A).data("link",L);$===null?(sa.push("M",P,",",M),ka.push("M",P,",",V),X=0):sa.push("L",
P,",",M);ka.push("L",P,",",M);qa.unshift("L",P,",",V);X++;$=M;o[D]={chart:e,index:D,value:J,graphic:ga,dataLabel:Ja,tracker:ma};Ja=e.drawPlotLineLabel(b,d,D,P,M)}Ja&&n.push(Ja);ga&&n.push(ga);ma&&n.push(ma);e.drawTracker&&e.drawTracker.call(e,b,d,D)}X>0&&(X===1?ka.splice(-8,8):(ka=ka.concat(qa),ka.push("Z")));(oa=b.graphic=f.path(ka,Fa).attr({fill:W,"stroke-dasharray":S,"stroke-width":j?0:s,stroke:Q,"stroke-linecap":"round","stroke-linejoin":s>2?"round":"miter",visibility:u}).shadow(k.shadow&&K.shadow,
Ga))&&n.push(oa);if(i)k=G.startPercent,l[2]=m+ta[0],k===1&&(ta[0]=l[2],l[0]=0);k=Fa.attr({"clip-rect":ta}).animate({"clip-rect":l},h,i?"easeIn":"normal",function(){Fa.attr({"clip-rect":null});ra.show();Aa.show()});if(j)g=b.connector=f.path(sa,Ca).attr({"stroke-dasharray":S,"stroke-width":s,stroke:Q,"stroke-linecap":"round","stroke-linejoin":s>2?"round":"miter",visibility:u}),f=g,Ca.attr({"clip-rect":ta}).animateWith(Fa,k,{"clip-rect":l},h,i?"easeIn":"normal",function(){Ca.attr({"clip-rect":null})}),
f&&n.push(f);b.visible=d.visible!==!1;return b},drawPlotScatter:function(b,d){var g;var e=this,f=e.options,h=f.plotOptions.series,i=e.paper,j=e.elements,k=b.items,l=b.graphics=b.graphics||[],o=e.xAxis[d.xAxis||0],n=e.yAxis[d.yAxis||0],q=b.data,r=d.visible===!1?"hidden":"visible",s=(f.tooltip||{}).enabled!==!1,v,f=isNaN(+h.animation)&&h.animation.duration||h.animation*1E3,x,w,z,A,B,y,u,D,I,m=d.lineWidth,G=m>0,K=d.color,U=d.dashStyle,L=h.connectNullData,F=[],J,V,S,Q,P=e.layers,M=P.dataset||(P.dataset=
i.group("dataset-orphan")),R=P.datalabels||(P.datalabels=i.group("datalabels").insertAfter(M)),$=P.tracker,X;R.hide();P=M.line||(M.line=i.group("connector",M));M=M.anchor||(M.anchor=i.group("anchor",M));x=0;for(w=q.length;x<w;x+=1){z=q[x];J=z.marker;D=I=S=X=Q=null;y=z.y;B=z.x;if(y!==null&&B!==null){if(J&&J.enabled&&(A=z.link,v=z.toolText,V=J.radius,I=n.getAxisPosition(y),D=o.getAxisPosition(B),S=J.symbol.split("_"),S=i.polypath(S[1]||2,D,I,V,J.startAngle,0,M).attr({fill:c(J.fillColor),"stroke-width":J.lineWidth,
stroke:c(J.lineColor),cursor:A?"pointer":"",visibility:r}).shadow(h.shadow&&z.shadow),A||s))V<a&&(V=a),Q=i.circle(D,I,V,$).attr({cursor:A?"pointer":"",stroke:aa,"stroke-width":J.lineWidth,fill:aa,ishot:!!A}).tooltip(v).data("link",A).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)});G&&((u===void 0||u===null&&L===0)&&D&&I&&F.push("M",D,",",I),D&&I&&F.push("L",D,",",I),u=I);k[x]={index:x,x:B,y:y,value:y,graphic:S,dataLabel:X,tracker:Q};X=e.drawPlotLineLabel(b,d,x,D,I)}else G&&
L===0&&(u=null),k[x]={chart:e,index:x,x:B,y:y};X&&l.push(X);S&&l.push(S);Q&&l.push(Q);e.drawTracker&&e.drawTracker.call(e,b,d,x)}if(F.length)g=b.graphic=i.path(F,P).attr({"stroke-dasharray":U,"stroke-width":m,stroke:K,"stroke-linecap":"round","stroke-linejoin":m>2?"round":"miter",visibility:r}).shadow(h.shadow&&z.shadow),h=g,P.attr({"clip-rect":j["clip-canvas-init"]}).animate({"clip-rect":j["clip-canvas"]},f,"normal"),l.push(h);M.attr({opacity:0}).animate({opacity:1},f,"normal",function(){R.show()});
b.visible=d.visible!==!1;return b},drawPlotLineLabel:function(a,b,c,d,f,h){var i=this.options,k=i.chart,l=this.paper,n=this.layers,i=i.plotOptions.series.dataLabels.style,q=k.rotateValues===1?270:0,r=this.canvasHeight,s=this.canvasTop,v=a.data,x=v[c],w=a.items[c],z=o(x.valuePosition,"auto").toLowerCase(),a=this.logic.defaultSeriesType,k=k.valuePadding+2,b=b.visible===!1?"hidden":"visible",A=!1,B=w.dataLabel,h=h||n.datalabels;switch(z){case "above":c=0;break;case "below":c=1;break;default:c=v[c-1],
c=!c?0:c.y<x.y?0:1}n=x.displayValue;if(La(n)&&n!==e){B?q&&B.rotate(360-q):(B=w.dataLabel=l.text().attr({text:n}).css(i),A=!0);B.attr({title:x.originalText||"",fill:i.color});l=B.getBBox();w=n=q?l.width:l.height;w+=k;l=f-s;r=s+r-f;w+=4;s=n*0.5+k;if(!/bubble/i.test(a))if(c)r>w?(f+=s,x._valueBelowPoint=1):l>w&&(f-=s);else if(l>w)f-=s;else if(r>w)f+=s,x._valueBelowPoint=1;B.attr({x:d,y:f,visibility:b});q&&B.attr("transform","T0,0,R"+q);A&&h.appendChild(B);A&&j(i.backgroundColor,i.borderColor)!==e&&B.attr({"text-bound":[i.backgroundColor,
i.borderColor,1,2]})}else B&&B.attr({text:e});return B},drawLabels:function(){for(var a=this.paper,b=this.options,c=(b=b.labels&&b.labels.items&&b.labels.items)&&b.length,d=this.layers.layerAboveDataset,f=this.elements.quadran||(this.elements.quadran=[]),h=this.canvasTop,i=this.canvasLeft,j={right:"end",left:"start",undefined:"start"},k,l;c--;)l=b[c],k=l.style,La(l.html)&&l.html!==e&&(f[c]=a.text(d).attr({text:l.html,x:parseInt(k.left,10)+i,y:parseInt(k.top,10)+h,fill:k.color,"text-anchor":j[l.textAlign],
"vertical-align":l.vAlign}).css(k))}},B["renderer.root"]);B("renderer.piebase",{redrawDataLabels:function(a){var b=a.elements.plots[0];a.placeDataLabels(!0,b.items,b);return{}},plotGraphicClick:function(){var a=this.graphic&&this||this.data("plotItem"),b=a.seriesData,c=a.chart,d,e,f,h,i,j,k;if(!b.isRotating&&!b.singletonCase)return d=a.graphic,e=a.connector,f=a.dataLabel,b=a.sliced,h=a.slicedTranslation,i=a.connectorPath,j=(b?-1:1)*a.transX,k=(b?-1:1)*a.transY,d.animate({transform:b?"t0,0":h},200,
"easeIn"),f&&f.x&&f.animate({x:f.x+(b?0:j)},200,"easeIn"),i&&(i[1]+=j,i[2]+=k,i[4]+=j,i[6]+=j,e.animate({path:i},200,"easeIn")),b=a.sliced=!b,a={hcJSON:{series:[]}},a.hcJSON.series[0]={data:[]},V(c.logic.chartInstance.jsVars._reflowData,a,!0),b},plotDragStart:function(a,b,c){var d=this.data("plotItem"),e=d.chart,d=d.seriesData;if(e.options.series[0].enableRotation)a=bb.call(c,a,b,d.pieCenter,d.chartPosition),d.dragStartAngle=a,e._pierotateActive=!0},plotDragEnd:function(){var a=this.data("plotItem"),
b=a.chart;V(b.logic.chartInstance.jsVars._reflowData,{hcJSON:{series:[{startAngle:b.datasets[0].startAngle}]}},!0);b.rotate(a.seriesData,b.options.series[0])},plotDragMove:function(a,b,c,d,e){var a=this.data("plotItem"),f=a.chart,h=a.seriesData,i=f.options.series;if(i[0].enableRotation&&!h.singletonCase&&(h.isRotating=!0,c=bb.call(e,c,d,h.pieCenter,h.chartPosition),i[0].startAngle+=c-h.dragStartAngle,h.dragStartAngle=c,h.moveDuration=0,c=(new Date).getTime(),!h._lastTime||h._lastTime+h.timerThreshold<
c))setTimeout(function(){f.rotate(h,i[0])},0),h._lastTime=c},plotMouseDown:function(){this.data("plotItem").seriesData.isRotating=!1},plotMouseUp:function(){var a=this.data("plotItem"),b=a.chart,c=a.seriesData;!c.isRotating&&b.linkClickFN.call({link:c.data[a.index].link},b);q._supportsTouch&&!c.isRotating&&b.plotGraphicClick.call(a)},legendClick:function(a,b,c){a=b.elements.plots[0];a.isRotating=!1;b.plotGraphicClick.call(a.items[c].graphic)},placeDataLabels:function(){var a=function(a,b){return a.point.value-
b.point.value},b=function(a,b){return a.angle-b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],e=[1,1,-1,-1];return function(f,h,i,j){var k=this.options.plotOptions,l=k.pie,o=this.canvasLeft+this.canvasWidth*0.5,n=this.canvasTop+this.canvasHeight*0.5,q=this.smartLabel,r=k.series.dataLabels,s=r.style,k=ia(parseInt(s.lineHeight,10),12),w=v(r.placeInside,!1),z=r.skipOverlapLabels,A=r.manageLabelOverflow,B=r.connectorPadding,y=r.distance;v(r.softConnector,!0);var u=j&&j.metrics||[o,n,l.size,l.innerSize||
0],D=u[1],I=u[0],j=u[2]*0.5,m=[[],[],[],[]],G=this.canvasLeft,K=this.canvasTop,l=this.canvasWidth,y=i.labelsRadius||(i.labelsRadius=j+y),n=o=parseInt(s.fontSize,10),L=n/2,B=[B,B,-B,-B],i=i.labelsMaxInQuadrant||(i.labelsMaxInQuadrant=cb(y/n)),r=r.isSmartLineSlanted,u=u[3]/2,U,F,J,V,P,S,M,Q,R,$,X,W,ga,aa,oa;f||q.setStyle(s);if(h.length==1&&!u){if(u=h[0],aa=u.dataLabel,aa.show(),u.slicedTranslation=[G,K],aa)aa.attr({visibility:Ga,align:"middle",transform:"t"+I+","+(D+L-2)}),aa.x=I}else if(w){var sa=
u+(j-u)/2;x(h,function(a){aa=a.dataLabel;aa.show();if(aa){var b=a.angle;X=D+sa*ma(b)+L-2;M=I+sa*Ka(b);aa.x=M;aa._x=M;aa.y=X;if(a.sliced)a=a.slicedTranslation,b=a[1]-K,M+=a[0]-G,X+=b;aa.attr({visibility:Ga,align:"middle",transform:"t"+M+","+X})}})}else{x(h,function(a){(aa=a.dataLabel)&&aa.show();aa&&(W=a.angle%db,W<0&&(W=db+W),oa=W>=0&&W<$a?1:W<Ma?2:W<Qa?3:0,m[oa].push({point:a,angle:W}))});for(h=f=4;h--;){if(z&&(s=m[h].length-i,s>0)){m[h].sort(a);w=m[h].splice(0,s);s=0;for(V=w.length;s<V;s+=1)u=w[s].point,
u.dataLabel.attr({visibility:"hidden"}),u.connector&&u.connector.attr({visibility:"hidden"})}m[h].sort(b)}h=qa(m[0].length,m[1].length,m[2].length,m[3].length);ga=qa(da(h,i)*n,y);m[1].reverse();for(m[3].reverse();f--;){w=m[f];V=w.length;z||(n=V>i?ga/V:o,L=n/2);u=V*n-L;s=ga+L;for(h=0;h<V;h+=1,u-=n)J=Ca(ga*ma(w[h].angle)),s-J<n?J=s-n:J<u&&(J=u),s=w[h].oriY=J;U=c[f];V=ga-V*n+L;s=-L;for(h=w.length-1;h>=0;h-=1,V+=n){u=w[h].point;W=w[h].angle;P=u.sliced;aa=u.dataLabel;J=Ca(ga*ma(W));J-s<n?J=s+n:J>V&&(J=
V);s=J;R=(J+w[h].oriY)/2;J=I+e[f]*y*Ka(ka.asin(R/ga));R*=d[f];R+=D;$=D+j*ma(W);S=I+j*Ka(W);M=J+B[f];X=R-L-2;Q=M+B[f];aa.x=Q;aa._x=Q;A&&(F=f>1?Q-this.canvasLeft:this.canvasLeft+l-Q,F=q.getSmartText(u.labelText,F,k),aa.attr({text:F.text,title:F.tooltext||""}));aa.y=X;if(P)P=u.transX,F=u.transY,M+=P,J+=P,S+=P,$+=F,Q+=P;aa.attr({visibility:Ga,"text-anchor":U,vAlign:"middle",x:Q,y:R});if(Q=u.connector)u.connectorPath=u=["M",S,$,"L",r?J:S,R,M,R],Q.attr({path:u,visibility:Ga})}}}}}()},B["renderer.root"])}]);
(function(){var k=FusionCharts(["private","modules.renderer.js-interface"]);if(k!==void 0){var i=k.hcLib,q=k.renderer.getRenderer("javascript"),B=i.hasModule,d=i.loadModule,h=i.moduleCmdQueue,R=i.executeWaitingCommands,e=i.injectModuleDependency,w=i.moduleDependencies,aa=i.getDependentModuleName,M=i.eventList={loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",resized:"FC_Resized",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",
exported:"FC_Exported"};i.raiseEvent=function(d,e,h,i,q,j){var w=M[d];k.raiseEvent(d,e,h,q,j);w&&typeof window[w]==="function"&&setTimeout(function(){window[w].apply(window,i)},0)};var K=function(d){var e,h,q,w={},j;for(e in k.core.items)if(e=k.core.items[e],q=e.chartType(),(h=e.jsVars)&&h.waitingModule&&e.__state.rendering&&i.needsModule(d,q))h.waitingModuleError=!0,h=aa(q).concat(h.userModules),h.length&&(h=h[h.length-1],w[h]=i.moduleCmdQueue[h]);for(j in w)R(w[j]);k.raiseError(k.core,"11171116151",
"run","HC-interface~renderer.load","Unable to load required modules and resources: "+d)},W=function(d,e,h){k.hcLib.createChart(d,e,"stub",h,d.jsVars.msgStore.ChartNotSupported)};w.charts=k.extend(w.charts||{},{column2d:0,column3d:0,pie2d:0,pie3d:0,line:0,bar2d:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,stackedbar2d:0,
stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0});w.powercharts=k.extend(w.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,inversemscolumn2d:0,
inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});w.widgets=k.extend(w.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,sparkcolumn:0,sparkline:0,sparkwinloss:0,
thermometer:0,vbullet:0,vled:0});w.maps=k.extend(w.maps||{},{});k.extend(q,{render:function(d,w){var K=this.chartType(),M=this.jsVars,R=this.__state,j=i.chartAPI,ia;ia=aa(K).concat(M.userModules);if(M.isResizing)M.isResizing=clearTimeout(M.isResizing);M.hcObj&&M.hcObj.destroy&&M.hcObj.destroy();if(j[K]){if(j[R.lastRenderedType]&&R.lastRenderedType!==K)for(var n in j[R.lastRenderedType].eiMethods)delete this[n];R.lastRenderedType=K;R.lastRenderedSrc=this.src;delete M.waitingModule;delete M.waitingModuleError;
delete M.drLoadAttempted;k.hcLib.createChart(this,d,K,w)}else{if(B(ia))if(M.drLoadAttempted){k.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");W(this,d,w);return}else e(K)&&(ia=aa(K).concat(M.userModules)),M.drLoadAttempted=!0;else if(ia.length){if(M.waitingModuleError){W(this,d,w);delete M.waitingModule;delete M.waitingModuleError;return}}else{W(this,d,w);return}(K=h[ia[ia.length-1]])?(K.push({cmd:"render",obj:this,args:arguments}),
M.waitingModule||(k.hcLib.createChart(this,d,"stub",void 0,M.msgStore.LoadingText),q.load.call(this))):(k.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),k.hcLib.createChart(this,d,"stub",void 0,M.msgStore.RenderChartErrorText))}},update:function(d){var e=this.ref,h=this.jsVars;h.hcObj&&h.hcObj.destroy&&h.hcObj.destroy();if(h.isResizing)h.isResizing=clearTimeout(h.isResizing);d.error===void 0?(delete h.stallLoad,delete h.loadError,
this.isActive()&&(this.src!==this.__state.lastRenderedSrc?this.render():k.hcLib.createChart(this,h.container,h.type))):(this.isActive()&&typeof e.showChartMessage==="function"&&e.showChartMessage("InvalidXMLText"),delete h.loadError)},resize:function(d){var e=this.ref,h,i=this.jsVars;if(e&&e.resize){if(i.isResizing)i.isResizing=clearTimeout(i.isResizing);i.isResizing=setTimeout(function(){h=k.normalizeCSSDimension(d.width,d.height,e);if(d.width!==void 0)e.style.width=h.width;if(d.height!==void 0)e.style.height=
h.height;e.resize();delete i.isResizing},0)}},dispose:function(){var d;d=this.jsVars;var e=d.hcObj||{};if(d.isResizing)d.isResizing=clearTimeout(d.isResizing);d.instanceAPI&&d.instanceAPI.dispose&&d.instanceAPI.dispose();if(d=this.ref)k.purgeDOM(d),d.parentNode&&d.parentNode.removeChild(d);i.cleanupWaitingCommands(this);return e&&e.destroy&&e.destroy()},load:function(){var e=this.jsVars,h=this.chartType(),q=k.hcLib.chartAPI[h],h=aa(h).concat(e.userModules),w=h[h.length-1];if(q||!h||h&&h.length===
0)delete e.waitingModule;else if(!e.waitingModule)e.waitingModule=!0,delete e.waitingModuleError,d(h,function(){delete e.waitingModule;R(i.moduleCmdQueue[w])},K,this)}})}})();